I need to set the content page default button. My code is like this:
Try this code
protected void Page_Load(object sender, EventArgs e) { this.form1.DefaultFocus = txtSearch.ClientID; this.Form.DefaultButton = btnSearch.UniqueID; }