I am trying set a button on a user control as defaultbutton on a page but its not working. Here is the code for my user control
this.Page.Form.DefaultButton = this.btnLogin.UniqueID;