-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: SitaramanM
Message 4 in Discussion

Hi    One option is to use the webbrowser control .  This is useful, only if you want 
to open a web page based on the link that the user clicks on the form.     If  you 
want to send a request to the web server based on the url clicked and also read the 
content based that is returned in the response, use the WebRequest and the WebResponse 
classes. Sample is as follows(VB.Net)     Public Function fnGetContentOfUrl(ByVal 
p_strUrl As String) As String
        Dim l_objWebRequest As WebRequest
        Dim l_objWebResponse As WebResponse
        Dim b() As Byte
        l_objWebRequest = HttpWebRequest.Create(p_strUrl)
        l_objWebResponse = l_objWebRequest.GetResponse()
        Dim l_objStream As Stream = l_objWebResponse.GetResponseStream()
        Dim l_objStreamReader As StreamReader = New StreamReader(l_objStream)
        Return l_objStreamReader.ReadToEnd()
    End Function   hth   regards,   sr

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to