Hello. I need to set the DefaultButton (the one that fires when enter key pressed) in the code behind of my MasterPage (VS 2010 / C# / Web App). The button is located in a User Control which resides in the MasterPage. I AM able to do this from a child page of the MasterPage (from an earlier post of mine), however, I cannot get it to work in MasterPage code behind...this.BaseMasterPage.Page.Form.DefaultButton = ((LinkButton)this.BaseMasterPage.FindControl("cSearch").FindControl("btnSearch")).UniqueID;Thanks in advance!
View Complete Post