A
Alan Silver
Hello,
I have a page that displays a data list with info from a database. The
grid has the usual stuff, edit, update, delete etc. Below this I have a
section where they can add a new entry to the list. This has some text
boxes for the data, and a button to click when they are ready to submit.
To the user, this looks like two separate forms, one containing a grid
of existing data and one where they add new data.
Trouble is, if they click the "edit" link button in the grid, nothing
happens as the validator on one of the text boxes in the new entry
section claims that it needs a value. Truth is, it does need a value,
but only when they are adding a new entry.
So how do I stop the validator firing when they click on the "edit"
link? I only want it to fire when they click the button to add a new
entry.
TIA
I have a page that displays a data list with info from a database. The
grid has the usual stuff, edit, update, delete etc. Below this I have a
section where they can add a new entry to the list. This has some text
boxes for the data, and a button to click when they are ready to submit.
To the user, this looks like two separate forms, one containing a grid
of existing data and one where they add new data.
Trouble is, if they click the "edit" link button in the grid, nothing
happens as the validator on one of the text boxes in the new entry
section claims that it needs a value. Truth is, it does need a value,
but only when they are adding a new entry.
So how do I stop the validator firing when they click on the "edit"
link? I only want it to fire when they click the button to add a new
entry.
TIA