// 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;
// 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