Hi all, after a long time I missed you all....
From few days I am doing efforts to read web pages using webbrowser control in my desktop application. But it is very slower than my expectations(because I want to read lots of pages in minutes and browser control reads almost one page in 5 to 10 seconds), what I need is to read two or three tags written in web page.
So finally I decided to use something, which can give me only source code of page. I think StreamReader will help me to read it. I am not sure if it is flaxible with my purpose, or something else is there which can give me only html source code of web page.
I have written this code to read html code, but it gives error.
System.ArgumentException: URI formats are not supported.Please help me to read html tags from web page.Code:public static string Navigate(string URL) { StreamReader SR = new StreamReader(URL); return SR.ReadToEnd(); }
Thanks a bunch !!




Reply With Quote
