Click to See Complete Forum and Search --> : Can Read Web Page Source ??


meral
04-29-2009, 07:28 AM
Hi,
I need to read the Web Page Source and assign all source data in a string or any other type of variable. than want to use that variable.
How can achive??
all things to be wanted through .aspx page and c# code.

namyaf
04-29-2009, 10:43 AM
Are you trying to read the source generated from a browser or the actual C# or asp.net code? If you are trying to read the source that is generated from a browser, take a look at the following. There may be a better way, but I used this in the past.

webClient.OpenRead
http://msdn.microsoft.com/en-us/library/781fwaz8.aspx