Wednesday, August 17, 2011

How to make button Default button when hit enter key

// Button1 is the ID of button.
// form1 is the ID of form tag which is in master page.

(Page.Master.FindControl("form1") as HtmlForm).DefaultButton = this.Button1.UniqueID;


No comments:

Post a Comment