I've got a EmployeeMaster page where i enter empcode,empname etc.After entering empcode,when i click on the empname textbox,i want to show a success image if no such empcode exists and a failure image if empcode exists..
Is there any way to show this using jquery ajax method ?
Heres how i've tried to call the textbox change function.
$(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');
}
Here alert is not displaying.How can i solve this issue....