VB.NET获取页面源WebBrowser控件

时间:2012-06-19 11:54:22

标签: vb.net browser

我想获取网站的html源代码,

类似于:

wb.Document...

1 个答案:

答案 0 :(得分:7)

1:

webbrowser1.document.body.innerhtml

2:

Dim webClient As New System.Net.WebClient
Dim result As String = webClient.DownloadString("http://www.google.co.il")