|
-
Jun 6th, 2010, 06:13 AM
#1
Thread Starter
Lively Member
Internet Interaction Advice
Hi,
I need some advice from experienced .net programmers.
I have written a few little applications that interact with the internet, I have been mainly using the webbrowser control for this, however I keep coming across posts on various forums that claim that it is far better to use httpwebrequest class when dealing with the internet.
Is this true and if yes, why?
Thanks
-
Jun 6th, 2010, 06:18 AM
#2
Re: Internet Interaction Advice
The WebBrowser is a control. The point of a control is to interact with the user, i.e. display data and receive input. If you're not specifically interacting with the user then a control is generally not the best choice. There's a considerable overhead associated with the UI and that's wasted if you aren't I'ing with the U. Generally speaking, if you want to perform web-based tasks in code then the WebClient class should be your first choice, mainly because it's simple, and then you should look at a WebRequest if you need greater control than the WebClient offers.
-
Jun 6th, 2010, 07:28 AM
#3
Thread Starter
Lively Member
Re: Internet Interaction Advice
Thanks jmcilhinney,
Looks like I have hot some reading to do.....
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
|