首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎么将 string 转换成HtmlDocument

2011-12-10 
如何将 string 转换成HtmlDocument如题。我又个html的string怎么转换成HtmlDocument[解决办法]1, OpenNew

如何将 string 转换成HtmlDocument
如题。我又个html的string怎么转换成HtmlDocument

[解决办法]
1, OpenNew 方法 Gets a new HtmlDocument to use with the Write method. 
2, Write 方法 Writes a new HTML page. 

[解决办法]
HtmlDocument doc = new HtmlDocument();
doc.Write("<html><title>test</title><body>this is a hteml</body></html>");
[解决办法]
[color=#FF99CC][/color]up
[解决办法]

热点排行