添加引用:
是ms xmlv2.6(不是v6.0,原因知道的同志给我答案)

using system;
using system.data;
using system.configuration;
using system.web;
using system.web.security;
using system.web.ui;
using system.web.ui.webcontrols;
using system.web.ui.webcontrols.webparts;
using system.web.ui.htmlcontrols;
using msxml2;
public partial class _default : system.web.ui.page 
...{
protected void page_load(object sender, eventargs e)
...{
}
protected void button1_click(object sender, eventargs e)
...{
string msitename = textsarcher.text.trim();
msxml2.xmlhttp xmlhttp = new msxml2.xmlhttp();
//string url = "http://www.xrss.cn/getservice.php?sitename=" + msitename + "";
xmlhttp.open("get", url, false, null, null);
xmlhttp.send("");
msxml2.xmldocument dom = new xmldocument();
byte[] b = (byte[])xmlhttp.responsebody;
新闻热点
疑难解答