按钮单击不激活 [英] Button Click not firing
本文介绍了按钮单击不激活的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个按钮点击事件,它在IE 9中触发但在IE 10中没有触发?任何解决方案?
解决方案
请参阅此
http://stackoverflow.com/questions/12449934/linkbuttons-in-ie10-not-performing-posting-back [ ^ ]
< blockquote>你的代码似乎没问题。可能是因为某些客户端验证错误。尝试将Button的CausesValidation属性设置为false。
试试这个:
< asp:按钮 id < span class =code-keyword> = btnSave cssclass = btnPointer runat = server text = 保存 width = 99px causevalidation = false onclick = < span class =code-keyword> btnSave_Click / >
--Amit
Hi ,
I have a button click event which is firing in IE 9 but not firing in IE 10? Any solution?
解决方案
Refer this
http://stackoverflow.com/questions/12449934/linkbuttons-in-ie10-not-performing-posting-back[^]
Your code seems to be fine. It may be because of some Client Side Validation error. Try setting CausesValidation property to false for the Button.
Try this:
<asp:button id="btnSave" cssclass="btnPointer" runat="server" text="Save" width="99px" causesvalidation="false" onclick="btnSave_Click" />
--Amit
这篇关于按钮单击不激活的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文