Home > DeveloperSection > Forums > Validate data when textbox loses focus
Goti Bandu

Total Post:119

Points:835
Posted on    August-21-2014 12:39 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 866  View(s)
Rate this:

In my ASP.Net web application, there is a textbox .When the user enters data  and moves to the next textbox, I want to validate the data against a table and if matching record is found, I want to display details in different controls  else I want to display a message and continue. I do not want to do the verification AFTER the user enters all data and press the Save button, but it should be done immediately. I was hoping that the Web Form textbox would have a LostFocus event, but do not know how to handle the requirement.



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-21-2014 1:12 AM

Hi Goti, 

You just need to perform javascript call to trigger server validation, use event onlostfocus.


Don't want to miss updates? Please click the below button!

Follow MindStick