webbrowser控件可以更快地加载页面 [英] webbrowser control load pages faster

查看:105
本文介绍了webbrowser控件可以更快地加载页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要发布到网站中的表单,因此我正在使用webbrowser控件加载网页.网页有时包含大量文本内容,例如博客中包含大量评论,因此加载页面需要5至10分钟以上的时间.

是否有其他解决方案,可以使网页加载速度更快,也可以使用其他方法加载网页

我听说过使用httpwebrequest或webclient获取页面,并将流传递给webbrowser控件,这样我就可以拥有所有cookie.

但是担心javascript的执行和cookie

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

推荐答案

如果您只需要发布到网页,请使用HttpWebRequest发送到网页.
您不必加载页面.构建输入表单,自己创建POST命令,然后将其发送到服务器.
网页要显示给用户吗?
我无法想象会有一个网页加载速度缓慢.
如果确实如此,则可能尝试使用第三方开源Web控件.

问候,马库斯
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


这篇关于webbrowser控件可以更快地加载页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆