Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • 4 weeks later...
Posted

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

"Beer is proof that God loves us and wants us to be happy."

-Benjamin Franklin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...