empcode、empname などを入力する EmployeeMaster ページがあります。empcode を入力した後、empname テキストボックスをクリックすると、そのような empcode が存在しない場合は成功イメージを表示し、empcode が存在する場合は失敗イメージを表示したいと考えています。
jquery ajaxメソッドを使用してこれを表示する方法はありますか?
テキストボックス変更機能を呼び出そうとした方法は次のとおりです。
$(document).ready(function(){
var prm = Sys.WebForms.PageRequestManager.getInstance();
//Raised before processing of an asynchronous postback starts and the postback request is sent to the server.
prm.add_beginRequest(BeginRequestHandler);
// Raised after an asynchronous postback is finished and control has been returned to the browser.
prm.add_endRequest(EndRequestHandler);
AutoComp();//function for autofill textbox and it works perfectly.
$("#<%=txtEmpCode.ClientID %>").change(checkEmpCode);//calling textbox change function
});
function checkEmpCode() {
alert('hai');
}
ここでアラートが表示されません。この問題を解決するにはどうすればよいですか....