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...
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.
Continue discussion
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...
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.