Click here to Skip to main content
15,298,916 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Hi ,

I want to develop an application which can preview the content of
web page on client side application ( on browser ) ,without downloading the full web page from server .

Please suggest me the approach and suggestion
Thanks in advance .


If all you want is to read the returned HTML from the web server you can use the WebClient or WebRequest classes like;
System.Net.WebRequest wrq = System.Net.WebRequest.Create("");
System.Net.WebResponse wrs = wrq.GetResponse();
System.IO.Stream strm = wrs.GetResponseStream();
System.IO.StreamReader sr = new System.IO.StreamReader(strm);
string line;
while ((line = sr.ReadLine()) != null)

Anything more than this and you will be downloading the full page and all content.
Just to add, please use the tag system properly. Codeproject is kind of a retarded tag. How about the name of the language you're using ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900