我必须单击两次提交按钮 [英] I have to click the submit button twice
本文介绍了我必须单击两次提交按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的项目中,页面有一个提交按钮4。这个button4仅在第二次点击时起作用。
断点也只适用于第二次点击。
以下是我的代码:
In my project, a page has a submit button4. This button4 works only at the second click.
The breakpoint also works only on the second click.
Hereunder is my code:
<asp:UpdatePanel ID = "UpdatePanel1" runat="server" >
<ContentTemplate>
<asp:Button ID="Button4" runat="server" CausesValidation="false"
onclick="Button4_Click"
style="z-index: 1; left: 185px; top: 2840px; position: absolute; background-color:InactiveBorder; " ForeColor="Red" Text="Submit" />
<asp:Button ID="Button5" runat="server"
onclick="Button5_Click" CausesValidation="false"
style="z-index: 1; left: 300px; top: 2840px; position: absolute;background-color:InactiveBorder; " ForeColor="Red" Text="Cancel" />
</ContentTemplate>
</asp:UpdatePanel>
任何人都可以帮帮我。
问候。
Can anyone help me out.
Regards.
推荐答案
试试这些:
将更新模式设置为条件。
并设置更新面板的触发器
try these:
set update mode to conditional.
and set trigger of update panel
问题是wi您的Button4_Click
事件。在事件中检查代码。如果问题仍然存在,请联系。
谢谢。
Hi,
The problem is with yourButton4_Click
event. Check the Code in the event. If any problem persist please contact.
Thanks.
嗨Rajendran,>
我希望在按钮控件中导致验证属性使这个奇怪的事情发生。
尝试参考此链接
链接 [ ^ ]
一旦你点击验证设置为true所以它允许在我认为的第二次点击工作。
问候,
RK
Hi Rajendran,
I hope cause validation property in the button control is making this weird things to happen.
Try refering this link
Link[^]
Once you clicked validation is set to true so it is allowing to work on the second click I believe.
Regards,
RK
这篇关于我必须单击两次提交按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文