Skip to main content

Posts

Showing posts with the label Form Default Button

Form.DefaultButton

Well, in ASP.Net 2.0 there is a new property on the form and asp:Panel controls called “DefaultButton” which allows you to set the button which is “selected” when the Enter key is pressed. Page.Form.DefaultButton = btnSaveOnly.UniqueID;