asp.net - asp textbox onblur is not firing with autopostback -


i have textbox

<asp:textbox tabindex="8" id="txtuserprofile" onfocus="javascript:this.select();"runat="server" autocompletetype="disabled" onblur="getprofile();"width="270px" ontextchanged="txtuserprofile_textchanged"></asp:textbox> 

in text use getprofile function @ onblur sends json call server-side in cs file , have use autopostbak also. onblur not working . there alternative onblur?

this ajax function getprofile

function getprofile() {         debugger;         var profile = document.getelementbyid('txtuserprofile').value;         if (profile != "") {             var prefixtext = profile;             prefixtext = prefixtext.replace(/'/g, "\\'");              var count = '10';             $.ajax({                 type: "post",                 contenttype: "application/json; charset=utf-8",                 url: "userregistration.aspx/getprofile",                 async: true,                 data: "{'prefixtext': '" + prefixtext + "','count': '" +  count + "'}",                 datatype: "json",                 success: function (data) {                     if (data.d != "") {                         var sub = data.d;                         var sub1 = sub.split('&');                         document.getelementbyid('hnduserprofile').value =    sub1[1];                     }                  },                 error: function (result) {                  }             });         }     } 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -