Click here to Skip to main content
15,919,774 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi i am using grid view to display employee records
when i am updating the record using edititemtemplate i want to validate the user for each control user leaving. for example user editing firstname, i want to validate user on leaving text box . onleave event is not working . if i use onkeyup it is firing for each key i want to fire when user leaving text box.
please anybody help me
thanks in advance
vara prasad
Posted

1 solution

using jQuery...

<script type="text/javascript">
$(".someCSSClassIAddedToMyGridViewControls").blur(function(){
    //let's call Validate via an AJAX call!
    //$(this) will be the textbox/control that spawned the event.
    //using blur will work when the user LEAVES the control.  
    //You can also use .change if you want to use
    //DropdownLists.
    $.ajax({
    
    });
});


</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900