Error: ASP.NET Ajax client-side framework failed to load.

Last post 07-08-2009 1:48 AM by qwe123kids. 1 replies.

Sort Posts:

  • Error: ASP.NET Ajax client-side framework failed to load.

    07-07-2009, 7:37 AM
    • Member
      5 point Member
    • Param
    • Member since 09-29-2005, 11:06 AM
    • India
    • Posts 4

    Hey,

    I'm using XmlHttpRequest to load an aspx file as below.

    function GetPage(url)
    {
    var xmlhttp = false;

    try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
    catch(Ex1)
    {
    try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
    catch(Ex2) { xmlhttp = false; }
    }

    if (!xmlhttp && typeof(XMLHttpRequest) != 'undefined')
    {
    try { xmlhttp = new XMLHttpRequest(); }
    catch(Ex3) { xmlhttp = false; }
    }

    if (!xmlhttp && window.createRequest)
    {
    try { xmlhttp = new window.createRequest(); }
    catch(Ex4) { xmlhttp = false; }
    }

    xmlhttp.open("GET", url, true);

    xmlhttp.onreadystatechange = function()
    {
    if (xmlhttp.readystate == 4)
    {
    xmlhttpwindow = window.open('', 'newwindow', 'status=yes, toolbar=no, location=no, menubar=no, width=700, height=650, resizable=no, scrollbars=yes, top=150, left=200');
    xmlhttpwindow.document.write(xmlhttp.responseText);
    }
    }

    xmlhttp.send();
    }

    But I get an Javascript error, ASP.NET Ajax client-side framework failed to load.

    Any ideas? I'm using .NET 3.5 Fx and VS.NET 2008.

    Thanks in advance.

    Please mark the post that helped you as answer and also include a summary of what solved the problem as it helps others in similar situations
  • Re: Error: ASP.NET Ajax client-side framework failed to load.

    07-08-2009, 1:48 AM
    Answer
    • All-Star
      23,953 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 5:49 AM
    • Mumbai
    • Posts 4,096

    Hi,

    if U r using Ajax.net Then Use should use Updatepanel...

    if Your Using Classical Ajax..

    http://www.w3schools.com/ajax/ajax_database.asp

    Check The above Link

    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
Page 1 of 1 (2 items)