Re: Microsoft.XMLHTTP ASP.NET

Tech-Archive recommends: Speed Up your PC by fixing your registry



Thanks for the help guys!



"Scott Allen" wrote:

> Hi Tim:
>
> The example you are showing is in JavaScript, and would run in the
> client's browser.
>
> If you want to pull the HTML from your C# code, your best bet is the
> System.Net.WebClient and System.Net.WebRequest classes. The docs
> contain C# examples on how to use the classes and Google will turn up
> many more demonstrations.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetwebclientclasstopic.asp
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetwebrequestclasstopic.asp
>
>
> HTH,
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>
> On Tue, 3 May 2005 02:40:03 -0700, "Tim::.." <myatix_at_hotmail.com>
> wrote:
>
> >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();
> > }
> > }
> >}
>
>
.



Relevant Pages

  • Re: Lynx, Links, and ELinks
    ... It seems as though certain websites make ... extensive use of javascript in order for me to download files. ... based browser was nearly impossible due to javascript. ... How many of the web developers here make their sites accessible through ...
    (comp.infosystems.www.authoring.html)
  • Re: newbie: what if JavaScript is switched off in a browser?
    ... I am learning WWW technologies. ... programming websites using these technologies. ... can be switched off in a browser. ... JavaScript, so my websites will not work when JavaScript is disabled. ...
    (comp.lang.javascript)
  • Re: Cross browser
    ... in my websites i hav not written a single line of code that is not ... > else if (browser is Mozila with version) then ... specific syntax like the MS Jscript dialect or you can code in Javascript ... > Also can any one help me for sample source code which i need to do. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Should I learn C before Java ?
    ... My disgust of JavaScript is only an opinion, ... producing some impressive gimmicks for over-the-top websites designed by ... to Microsoft and Netscape trying to make their browser the one with the ... And that, in my opinion, is an unacceptable way of developing ...
    (comp.lang.java.programmer)
  • Re: Netscape: font size
    ... > FrontPage is a great application and I use it every day to do professional ... But I also have about 14 different browsers and browser ... Is it a bug in Opera? ... Websites, woodworking, needlepoint, ...
    (microsoft.public.frontpage.client)