5

i have a aspx page with two buttons,"close" and "submit" button.when i press the enter key in the keyboard the focus automatically goes to "close" button and closes the page.Instead i want the focus to be focused on the "submit" button on pressing the enter key in the keyboard.

mamoo
  • 8,156
  • 2
  • 28
  • 38
subash
  • 4,050
  • 14
  • 51
  • 78

1 Answers1

5

Set defaultbutton property on your frame:

<form id="form1" runat="server" defaultbutton="btnID">

http://forums.asp.net/t/985791.aspx

mamoo
  • 8,156
  • 2
  • 28
  • 38