G
Guest
Can someone please help me with this annoying little problem...
I use to use Microsoft.XMLHTTP in asp to pull html from other websites and
inbed it into my website but for some reason I can't seem to find out how to
do it in ASP.NET???
I did find this example in C# but am not 100% sure it will do the same
thing???
I also want the following code in VB rather than C#
Can someone please help me....
Thanks
<code>
var req;
function loadXMLDoc(url) {
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
req.onreadystatechange = processReqChange;
req.open("GET", url, true);
req.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req) {
req.onreadystatechange = processReqChange;
req.open("GET", url, true);
req.send();
}
}
}
I use to use Microsoft.XMLHTTP in asp to pull html from other websites and
inbed it into my website but for some reason I can't seem to find out how to
do it in ASP.NET???
I did find this example in C# but am not 100% sure it will do the same
thing???
I also want the following code in VB rather than C#
Can someone please help me....
Thanks
<code>
var req;
function loadXMLDoc(url) {
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
req.onreadystatechange = processReqChange;
req.open("GET", url, true);
req.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req) {
req.onreadystatechange = processReqChange;
req.open("GET", url, true);
req.send();
}
}
}