C# app, need help!

Started by
3 comments, last by Sagar_Indurkhya 19 years, 6 months ago
I am making an internet bot using C#. I have the url of a website. How can I get the source of the website? Any pointers are appreciated!
Advertisement
Have a look at codeguru.com, codeproject.com, or csharpcorner.com

There is an example on one of those sites. Thinkit's codeproject but can not remember.
Mykre - BlogVirtual Realm :- XNA News and Resources from Down Under** For those Interested in an Australian XNA User Group Contact me though my site.
I looked at all three. CSharpCorner seems to have disappeared. At CodeProject, I found two examples, but they both use ASP.NET. Does anyone know of a good way using just the .NET Framework? Thanx!
Take a look the documentation for System.Net.WebClient very easy to use.

System.Net.WebClient client = new System.Net.WebClient();string html = System.Text.Encoding.ASCII.GetString(client.DownloadData("http://www.gamedev.net"));
Thanx! Rating ++ for u!

This topic is closed to new replies.

Advertisement