blog.mha.dk
The on-line blog of Michael Holm Andersen

Setting the DefaultFocus / DefaultButton in a ContentPage in ASP.NET 2.0

Friday, 21 April 2006 13:16 by mha

You may be aware of the new DefaultButton and DefaultFocus properties that a few ASP.NET 2.0 controls, including the HtmlForm have. These properties allow you to determine which button gets "clicked" when you hit enter on the page, and which form control gets the focus when the page loads. However when using Master Pages things behave a bit different - Download the PDF: MasterPages-MHA-Focus_DefaultBtn.pdf (22,57 kb)

Comments are closed