ASP。 NET按钮单击页面刷新 [英] ASP. NET Button Click on Page Refresh
本文介绍了ASP。 NET按钮单击页面刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在页面刷新时停止按钮的点击事件?
我有多个按钮我的表格。
我试过 -
1 。重定向到同一页面。
2.查看状态会话方法
还有其他选项吗?
谢谢
How to stop the button's click event on page refresh?
I have multiple button sin my form.
I tried -
1. Redirect to same page.
2. View state Session approach
is there any other option available?
Thanks
推荐答案
Response.Redirect(你的aspx页面);
Response.Redirect("Your aspx Page");
试试这个问题的链接,我希望你能得到一个问题的解决方案
http://csharpdotnetfreak.blogspot.com/2008/12/detect-browser-refresh-to-avoid-events .html [ ^ ]
ASP.Net中的刷新页面问题 [ ^ ]
Try this links for the problem,, i hope you will get a solution for the problem
http://csharpdotnetfreak.blogspot.com/2008/12/detect-browser-refresh-to-avoid-events.html[^]
Refresh Page Issue in ASP.Net[^]
转到链接页面解决您的问题.....
http:/ /stackoverflow.com/questions/2167490/how-to-avoid-the-button-events-on-refresh-of-page [ ^ ]
Go on the link page to resolve your issue.....
http://stackoverflow.com/questions/2167490/how-to-avoid-the-button-events-on-refresh-of-page[^]
这篇关于ASP。 NET按钮单击页面刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文