设置页面的默认焦点控件和默认接受事件控件
How Do I Set the DefaultFocus or DefaultButton in a Page Based on a Master Page in ASP.NET 2.0
Don’t do this:
• Page.Form.DefaultFocus = "TextBox1"
• Page.Form.DefaultButton = "Button1"
Do this:
• Page.Form.DefaultFocus = TextBox1.ClientID
• Page.Form.DefaultButton = Button1.UniqueID