Get HTML from a page

J

jacas

you can get HtML froma a page like
mywebReq = WebRequest.Create("http://www.c-
sharpcorner.com/faq.asp")
mywebResp = mywebReq.GetResponse()
sr = New StreamReader(mywebResp.GetResponseStream,
System.Text.Encoding.ASCII)
strHTML = sr.ReadToEnd
TextBox1.Text = strHTML

but it has problems when the page is in de same directory
as de page in where de code is an in it you have to
athentificate if you want to wiev pages, but i thing it
might be a way of take that page if you are already
athentificate

i proof that
mywebReq = WebRequest.Create(site & "(" &
Request.ServerVariables("HTTP_ASPFILTERSESSIONID") & ")
page.aspx")

but d'ont works somebody can help me
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top