更新时间:2023-12-02 09:15:52
你不应该写禁用F5。特定的键取决于浏览器。
这是一个非常受欢迎的问题,所以你可以在很多地方找到解决方案。这个想法是禁用浏览器缓存。在CodeProject上,这个问题被多次回答: http:/ /www.codeproject.com/search.aspx?q=ASP.NET+disable+back+button&doctypeid=5 [ ^ ]。-SA
You should not write "disabled F5". The particular key depends on the browser.
This is a very popular question, so you could find the solution in many places. The idea is to disable browser caching. On CodeProject along, this question was answered many times: http://www.codeproject.com/search.aspx?q=ASP.NET+disable+back+button&doctypeid=5[^].—SA
您可以将此代码粘贴到页面元标记中,这样可以避免浏览器缓存历史记录
you may paste this code in your page meta tag , that will avoid browser to cache history
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
参考 - 退出后的浏览器后退按钮问题 [ ^ ]。