问题描述
这是一个老问题,但我之前从来没有这么糟糕,
单击浏览器刷新按钮时事件正在重新启动。
In在我的webform中的Submit按钮,我捕获服务器端点击
事件并更新会话信息以跟踪向导类型导航中某些
面板的可见性("接下来>>"和<<< Back"按钮)..
但是刷新按钮会触发另一个事件并将整个
的事情带到一个Choes ..
重定向到数据库中的同一页面/保存状态是愚蠢的,并且
不应该被提及作为答案..并且,请,如果你猜不到,请不要回复。
谢谢。
This is an old problem,, but I never had it so bad like this before,,
the events are refiring when clicking the Browser refresh button.
In the Submit button in my webform, I capture the server side click
event and I update session information to track the visibilty of some
panels in a wizard type navigation ("Next >>" and "<< Back" buttons)..
but the refresh button makes another event firing and takes the whole
thing to a Choes..
redirection to the same page/ saving state in a database is dumb and
should not be mentioned as an answer .. and Please, don''t reply if you
are guessing.
thanks.
这篇关于老年问题:刷新按钮导致回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!