设置页面的默认焦点控件和默认接受事件控件How Do I Set the DefaultFocus or DefaultButton in a Page Bas
时间:2010-11-22 来源:DAP
设置页面的默认焦点控件和默认接受事件控件
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
相关阅读 更多 +
排行榜 更多 +