对不起,我要表达的不是这个意思
我的意思是
我要把其他的网页(比如说www.google.com)
得到可以解析的DOM
也就是说
source = new ActivexObject('');//应该写点什么?
source.load('www.google.com');
我的意思是
我要把其他的网页(比如说www.google.com)
得到可以解析的DOM
也就是说
source = new ActivexObject('');//应该写点什么?
source.load('www.google.com');
解决方案 »
- 请教这个组合命令行应该这么写?
- 关于对人事系统中人的角色的建模。
- 报表导出到excel
- 如何让程序的一个功能在每天的特定时间执行?谢谢!
- 急急急,请问下如何在WINFORM下打印报表,什么方法都可以啊!
- 请问:如何限制winform程序的cpu使用率 ,在线等待
- 各位老大,为什么我这里显示的是下载。doc文件,但是实际上却总是下载了WebForm1。aspx文件啊?
- 请教一个关于C语言类型转换.NET类型问题
- 求一个C# 现成能用的字符串加密、解密函数。好的马上给分结贴!!!!
- 不理解属性attribute正真有途,望高手指点
- 在C#的“ASP.NET应用”中怎么插入框架!
- 在C#中如何进行移位操作?
source = new ActivexObject('Micrsoft.XMLHTTP');
source.open ("GET","http://www.google.com",false);
source.send();
if (source.status == 200)
alert(source.responseText);you can also do var objXMLDocument;
objXMLDocument = Server.CreateObject("MSXML2.DOMDocument");
objXMLDocument.async = false;
objXMLDocument.resolveExternals = false;
objXMLDocument.setProperty ("ServerHTTPRequest", true);
objXMLDocument.load ("http://someotherserver/respond.asp");
...but if you are using .NET, use HttpWebRequest/HttpWebResponse in System.Netsee
Supporting XMLHTTP functionality in .NET
http://dotnetjunkies.com/weblog/darrell.norton/posts/468.aspx
是不是字符编码的问题
代码如下,请指教
string url = "http://www.gooooal.com/www/live_cn.htm";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
WebResponse wrs = req.GetResponse();
Stream strm = wrs.GetResponseStream();
StreamReader sr = new StreamReader(strm);
string line = "";
string content = "";
while(line != null)
{
content += line;
line = sr.ReadLine();
}