|
-
Aug 13th, 2006, 09:52 AM
#1
Thread Starter
New Member
View Source in C#
Hello,
there is an option in Internet Explorer called "View Source". I'm wondering how I can make something like that in C# (Visual Studio 2005).
Thanks for all your help,
Dishwasher
-
Aug 13th, 2006, 09:56 AM
#2
Re: View Source in C#
Are you making a web browser? Do you just want to type in a url and get the source code? Etc?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 13th, 2006, 03:09 PM
#3
Thread Starter
New Member
Re: View Source in C#
Hello, first I would like to thank you for your quick response and I just want to do: click and then I get the sourcecode of a website.
Thanks for reply and time,
Dishwasher
-
Aug 13th, 2006, 05:15 PM
#4
Re: View Source in C#
Code:
System.IO.Stream strm = System.Net.WebRequest.Create("http://www.google.com/")
.GetResponse().GetResponseStream();
StreamReader str = new StreamReader(strm);
textBox1.Text=str.ReadToEnd();
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|