1/1页1 跳转到查看:1798
发新话题 回复该主题

VB.Net下载网页的方法

VB.Net下载网页的方法

Just create a new WebClient and then request the page you want. Since the page comes down as a byte array we use the Encoding class to translate it to ASCII for us.ÐçUü–l;޼¶bbs.szblogs.com!j<; ßq(o"
代码如下:ÐçUü–l;޼¶bbs.szblogs.com!j<; ßq(o"
Dim Obj_Lob As New System.Net.WebClient()

Dim Str_Html As String = Encoding.ASCII.GetString(Obj_Lob.DownloadData([url]http://www.lob.cn[/url]))
ÐçUü–l;޼¶bbs.szblogs.com!j<; ßq(o"
最后编辑z342318151 最后编辑于 2008-05-06 15:05:39

TOP

 
1/1页1 跳转到
发表新主题 回复该主题