Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Axel 68 posts 96 karma points
    Aug 07, 2014 @ 09:12
    Axel
    0

    Custom Usercontrol and Ajax Call

    Hi, i have the following code in my Custom Usercontrol.
    the Searchpage.aspx i have put in the folder Usercontrols, but also tryed in the root folder. But it seems that he not load the aspx page.
    what did i wrong ?

    <script src='../Scripts/jquery-2.1.1.js' type="text/javascript"></script>

    <div id="ajaxcontent"></div>

     function GetUsername() {
            dataString = $("#uname").serialize();
             $.ajax({
                type: 'POST', dataType: 'html', data: dataString, success: function (data, textStatus)
                { jQuery('#ajaxcontent').html(data); }, beforeSend: function (XMLHttpRequest) { $('#indicatorSearch').show(); }
          , complete: function (XMLHttpRequest, textStatus) { $('#indicatorSearch').hide(); }, url: 'Searchpage.aspx'
            });
        return false;
    }

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies