有没有一种方法来获得使用.NET Compact Framework的一个网页的HTML? [英] Is there a way to obtain the HTML of a web page using the .NET compact framework?

查看:118
本文介绍了有没有一种方法来获得使用.NET Compact Framework的一个网页的HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于WebBrowser控件不公开get访问你不能用它来获取加载到该控件的HTML DocumentText属性。有谁知道一种方式来获得HTML作为一个字符串?

As the WebBrowser control does not expose a get accessor for the DocumentText property you cannot use it to obtain the HTML that was loaded into this control. Does anyone know a way to obtain the HTML as a string?

我使用的.NET CF3.5。

I am using .NET CF3.5.

推荐答案

使用的 HttpWebRequest的类。 这里是如何做到这一点的例子。

Use HttpWebRequest class. Here is an example on how to do that.

这篇关于有没有一种方法来获得使用.NET Compact Framework的一个网页的HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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