Using visual studio 2005.
I have a webpage with a button that, when clicked, will postback the page -- inserting the value of the texbox on the page into the database. I also have a required field validator on this texbox.
On the same, I also have a gridview that allows edit. When the user clicks the edit button on the gridview, it properly displays the update and cancel buttons. When the user CLICKS the update button everything works correctly. However, if the user is editing the grid and presses ENTER instead of clicking update, the page ALSO validates the textbox on the page.
Is there a way to code my page so the enter button will function the same way as the "update" button when in edit grid mode?
Thanks in advance.
I have a webpage with a button that, when clicked, will postback the page -- inserting the value of the texbox on the page into the database. I also have a required field validator on this texbox.
On the same, I also have a gridview that allows edit. When the user clicks the edit button on the gridview, it properly displays the update and cancel buttons. When the user CLICKS the update button everything works correctly. However, if the user is editing the grid and presses ENTER instead of clicking update, the page ALSO validates the textbox on the page.
Is there a way to code my page so the enter button will function the same way as the "update" button when in edit grid mode?
Thanks in advance.