hema_mca Posted July 2, 2010 Posted July 2, 2010 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 Quote
MTSkull Posted July 29, 2010 Posted July 29, 2010 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 Quote "Beer is proof that God loves us and wants us to be happy." -Benjamin Franklin
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.