Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i need to post to a form in a website, so am using the webbrowser control to load the web pages. the web pages sometimes have large textual content, like a blog that has large comments, and this takes more than 5-10 mins to load the pages.

are there any alternative solution for this, either to make the webpage load faster or use another method to load the pages

i have hear about using httpwebrequest or webclient to get the pages, and pass the stream to webbrowser control, so i can have all the cookies.

but am concerned about the javascript execution and cookies
Posted

1 solution

If you just have to POST to the webpage, use HttpWebRequest to send to the web page.
You dont have to load the page. Build the input form, create the POST command yourself and send it to the server.
Has the webpage to be displayed to the user?
I cannot imagine a web page to load thaaat slow.
If it really does, probably try to use a 3rd party open source web control.

Greets, Markus
 
Share this answer
 

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