Click here to Skip to main content
15,914,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi any one :(
can any one there help me or teach me
how to create a textBox validation for 4 or more fields textBox.
so that if the user not complete a required fields
the save button is stay in Disable mode . . .
Posted

You can use several approaches here, but the easiest one probably would be to capture the "changed" event in all the edit boxes...

Just at the end of the editing message handler you could call a global function that would chekc the state of the edit boxes... and activate or deactivate the button according to the edit boxes status.

There are other methods, but this one could help you.

Good luck!
 
Share this answer
 
use the error validation controls in windows,or validation controls in asp.net.
 
Share this answer
 
Jquery also has a lot of validations plugins that are useful.Google them and you will find a lot.
 
Share this answer
 
you use javascript. In each text box you write javascript in key press event.
 
Share this answer
 
Comments
Dave Kreskowiak 22-Jul-11 8:01am    
Where is the OP's post did it say he was using ASP.NET??
Rakesh From Patna 22-Jul-11 8:57am    
ya

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