ASP.NET Webform’s DefaultButton to handle enter key

This is a video version of an article I had written earlier around handling enter key with the ASP.NET Webform’s DefaultButton property.  So its quite old and a feature of ASP.NET 2.0 but works fine with 3.5 version as well.

Note: In the master page scenario at the end of the video, the code this.form1.DefaultButton = Button1.UniqueID needs to come in the Page_Load event and not inside the button click event.  I just typed the syntax there.

Click here for a text version of this article

 

 

Cheers!!!

posted @ Friday, October 17, 2008 9:10 PM

Print

Comments on this entry:

# re: ASP.NET Webform’s DefaultButton to handle enter key

Left by Rico at 11/12/2008 8:56 PM
Gravatar
Very useful, Thanks :-)

# re: ASP.NET Webform’s DefaultButton to handle enter key

Left by Eman at 2/22/2009 1:08 PM
Gravatar
very useful thank you

# re: ASP.NET Webform’s DefaultButton to handle enter key

Left by testicular cancer symptoms at 4/16/2009 5:28 PM
Gravatar
Very useful, Thanks you very much!

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345