October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can specify a default button for a form by using the DefaultButton property of the server-side Form control. If you specify a default button, pressing the keyboard Enter key invokes the button.
For example, the page in Listing 2.24 contains a simple search form. The <form> tag sets the btnSearch Button control as the default button on the page.
Listing 2.24. ButtonDefaultButton.aspx


If you open the page in Listing 2.24, type a search phrase, and press the keyboard Enter key, the form is submitted to the server. ...