Rattlesnake
Freshman
- Joined
- Dec 23, 2003
- Messages
- 47
Hi,
I have an ASP.net form , which is a master detail form.
The master section of the form has many textboxes and a Save button.
The detail part is in a Datagrid, that is editable. There is an Edit button in each row , that the use clicks to edit the row. When the row is in edit mode , the row has an Update button.
What I want is that if the user hits the ENTER key while editing a row , it should execute the code that is defined at the click event of the Update button in the row.
Right now what it does is it submits the form when the user presses the ENTER key. How can I stop it from doing this , and execute the Update button code.
Note: When the user presses the enter key while in the master section of the form , I dont want the form to be submitted.
Thanks
I have an ASP.net form , which is a master detail form.
The master section of the form has many textboxes and a Save button.
The detail part is in a Datagrid, that is editable. There is an Edit button in each row , that the use clicks to edit the row. When the row is in edit mode , the row has an Update button.
What I want is that if the user hits the ENTER key while editing a row , it should execute the code that is defined at the click event of the Update button in the row.
Right now what it does is it submits the form when the user presses the ENTER key. How can I stop it from doing this , and execute the Update button code.
Note: When the user presses the enter key while in the master section of the form , I dont want the form to be submitted.
Thanks