请问这段vb代码在.net中怎么实现?Function GetURL(url)
Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, false
.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
.Send
GetURL = .ResponseBody
End With
Set Retrieval = Nothing
GetURL=bstr(GetURL)
End Function
Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, false
.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
.Send
GetURL = .ResponseBody
End With
Set Retrieval = Nothing
GetURL=bstr(GetURL)
End Function
解决方案 »
- 菜鸟线程小问题,求教前辈
- 如何将一个lable放到柱形图的柱子的正上方
- 在内容页给母板页的viewstate赋值的问题。
- access c# update 简单错误 请教。
- HyperLinkColumn转ImageButton或转HyperLink
- 再次求助:如何动态控制datalist中镶嵌的Image控件的可见性
- 寻找“在线数据采集”项目团队
- 怎么判断ds是否有返回内容!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
- ★★★各位同仁元宵节快乐,小弟问一个Web上TreeView控件错误的解决方案!!★★★
- Asp.net安装打包设置Web目录权限问题,渴求思归等高手请帮忙!
- AspNetPager分页控件,我不想用存储过程,怎 么绑定DataGrid啊
- 自增表单
Function GetURL(url)
Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, false
.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
.Send
GetURL = .ResponseBody
End With
Set Retrieval = Nothing
GetURL=bstr(GetURL)
End Function
</script>