简体   繁体   English

重新加载时再次触发按钮单击

[英]Button click is again fired on reload

重新加载页面后,它将再次进入上一个事件(例如,单击按钮)。是否有任何方法可以防止这种情况发生?

If you are reloading the page by 'refreshing' (F5), and clicking to accept the resubmission of values, the button click event firing again is by design. 如果要通过“刷新”(F5)重新加载页面,然后单击以接受重新提交值,则按设计再次触发按钮单击事件。

If it's something else, we need much more information to help. 如果还有其他问题,我们需要更多信息来提供帮助。

尝试在事件处理程序的末尾将Response.Redirect添加到当前页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM