Don’t do this:
• Page.Form.DefaultFocus = "TextBox1"
• Page.Form.DefaultButton = "Button1"
Do this:
• Page.Form.DefaultFocus = TextBox1.ClientID
• Page.Form.DefaultButton = Button1.UniqueID
From http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=374
• Page.Form.DefaultFocus = "TextBox1"
• Page.Form.DefaultButton = "Button1"
Do this:
• Page.Form.DefaultFocus = TextBox1.ClientID
• Page.Form.DefaultButton = Button1.UniqueID
From http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=374