ASP.NET默认按钮(LinkButton的)谷歌浏览器不能正常工作时,多存在违约 [英] ASP.NET default button (LinkButton) not working in Google Chrome when multiple defaults exist
问题描述
我在整个有多个默认的按钮的ASP.NET Web表单页面。在所有的浏览器ecept谷歌浏览器,他们按预期运行,但在Chrome中错误的默认按钮火灾。
I have an ASP.NET Webforms page that has multiple default buttons throughout. In all browsers ecept Google Chrome they operate as expected but in Chrome the wrong default button fires.
我看过一些这方面的问题,如常见的原因。无效的HTML(将面板表元素的内部),但这种情况并非如此。
I have read some of the common causes of this problem, eg. invalid HTML (putting Panel inside of TABLE elements) but this is not the case.
我看到计算器种相似的问题,但也并不是一个公认的答案。
I saw one similar question on stackoverflow but there wasn't an accepted answer.
有没有办法解决这个问题?
Is there any solution to this problem?
更新:
我读<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlform.defaultbutton%28VS.85%29.aspx\"相对=nofollow> MSDN 中的LinkButtons不适合设置为默认值的按钮。
I read on MSDN that LinkButtons are not suitable for setting as default buttons.
唯一的按钮和控制的ImageButton支持。
"Only Button and ImageButton controls are supported."
我想这一定是这个问题。
I guess this must be the problem.
推荐答案
我读<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlform.defaultbutton%28VS.85%29.aspx\"相对=nofollow> MSDN 中的LinkButtons不适合设置为默认值的按钮。
I read on MSDN that LinkButtons are not suitable for setting as default buttons.
唯一的按钮和控制的ImageButton支持。
"Only Button and ImageButton controls are supported."
这篇关于ASP.NET默认按钮(LinkButton的)谷歌浏览器不能正常工作时,多存在违约的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!