Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a panel and one "add" button. When user clicks on

the Add button, i hide one panel and display the other panel. The second panel displayed has text fields on it where users enter info and click the add button again and save to database.

 

Well, if I have ONE "add" button with the hide/unhide panel AND the insert code, code just keeps on going and adds a blank row to the table, then displays the text fields.

 

so this is what i did I created TWO add buttons. One is when the user clicks and it hides/unhides the panel. The second "add" button actually saves to the database.

 

Any other way of having only 1 add button to perfom the 2 functions: hide/unhide and save to DB only when user has actually entered data in the text fields?

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...