Get Original Source code of the URL in Webbrowser Control

若如初见. 提交于 2019-12-11 02:32:00

问题


I have a browser control embeded in a C# windows app. I want to grab the original HTML that the url contained (not the one rendered, which could have been modified by javascript) - same as what would be in view source code in IE.

Any suggestions?


回答1:


WebBrowser.DocumentText or WebBrowser.DocumentStream



来源:https://stackoverflow.com/questions/4079605/get-original-source-code-of-the-url-in-webbrowser-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!