在 asp.net 中执行回发操作后刷新页面

2024-04-28

我在我的 asp.net 网格中添加了命令按钮。使用该按钮执行操作后,我们刷新网格以反映新数据。 (基本上此操作会复制网格行)。

Now when user refresh the page using F5, an alert message is displayed (to resend the information to server) if we select "retry", the action is repeated automatically.

我知道这是 ASP.NET 中的一个常见问题,我们怎样才能最好地处理这个问题?


POST 之后搜索 GET -http://en.wikipedia.org/wiki/Post/Redirect/Get http://en.wikipedia.org/wiki/Post/Redirect/Get- 基本上,在处理完事件后重定向到当前页面。

就像是:

Response.Redirect(Request.RawUrl)

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 asp.net 中执行回发操作后刷新页面 的相关文章

随机推荐