Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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;}
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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;
}
is working on a reply...