在asp.net(母版页)默认按钮? [英] Default button in asp.net (Master Page)?
问题描述
在我的web应用程序我有一个母版页,我想实现对登录页面defaultbutton当用户preSS输入(我的应用程序有母版页)我怎么可以把默认按钮。
in my web application i have a master page and i want to implement defaultbutton for a login page when user press enter (my application has Master page) how can i place default button.
推荐答案
无关,与母版页 - 在这里看看如何Web浏览器间prePT形式
Nothing to do with Master Pages - have a look here for how Web Browsers interprept the forms.
http://geekswithblogs.net/ranganh/archive/2006/ 4月12日/ 74951.aspx
我个人附上的形式在自己的面板控制和defaultButton属性设置为提交按钮的。
Personally I would enclose the form in its own Panel control and set the defaultbutton property to that of the submit button.
请注意:这只会在ASP.NET 2.0中的工作及以上
NOTE: This will only work in ASP.NET 2.0 and above.
这篇关于在asp.net(母版页)默认按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!