Something like this would work:

Sub getHTML()
    Try
        Dim objResponse As System.Net.WebResponse
        Dim objRequest As System.Net.WebRequest
        DIM theurlstring as string
        DIM theurl as string = "http://www.disney.com";
        objRequest = System.Net.HttpWebRequest.Create(theurl)
        objResponse = objRequest.GetResponse()
        Dim sr As new system.io.StreamReader  (objResponse.GetResponseStream())
        theurlstring =server.HTMLencode(sr.ReadToEnd())
        Page.Controls.Add(new LiteralControl(theurlstring))
    Catch 
       
    End Try
End Sub

Ronda Pederson
MVP ASP.Net


On Sat, 9 Oct 2004 15:07:57 +0700, Chinh Tran <[EMAIL PROTECTED]> wrote:
> 
> Hi, Friends
> Any body can show me how to get HTML Source of web site with its URL?
> Thanks
> Chinh Tran.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to