How to get HTML code for a web address

A

Ashutosh

hi
I am developing a windows application, which needs to get a html code for a
web address.

Can someone please guide me in this??

Regards,
Ashutosh
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Ashutosh said:
I am developing a windows application, which needs to get a html code for a
web address.

There are several possible solutions.

HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(url);
string html = (new
StreamReader(wr.GetResponse().GetResponseStream())).ReadToEnd();

Arne
 

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

Top