Validating dynamic textboxes

hema_mca

Newcomer
Joined
Jun 9, 2010
Messages
3
Location
India
Hi,

I am creating dynamic textboxes containing a table for each row it have 5 textboxes,and in last textbox when user press enter new row will be created

Now my requirement is

textbox should not be empty if it is empty user not allowed to proceed unless he/she gives valid data into textbox.I tried all the ways

Javascript - OnBlur() events etc; but could not since the control focus going to next textbox even the previous empty and showing alert when I click submit button my requirement is it should not proceed user to any action if the textbox is empty

This I acheived in OnBlur() event when the user presses tab.but if user give focus thourgh the mouse it is allowing.

Please help me regarding
 
I realize this is old but, you might try posting some code. Some times that can let the Pros here see what is happening. Also if you fix it yourself while waiting for an answer, please come back and post your fix so others with similar problems will benefit from your experience.

Have you tried using the code behind for validation, or is everything handled in Javascript.

Thanks
MTS
 
Back
Top