后退按钮无法正常工作 [英] Back button not working properly
问题描述
我正在asp.net网站上工作.
我正在使用javascript:后退按钮导航到后一页.
后退按钮最初运行良好,但是从最近几天开始,当我单击后退按钮时,我导航到刷新页面.
但这仅发生在一页上.
在我使用过后退按钮的其他aspx页面上,后退按钮工作正常.
我在他收到错误的aspx页面上未进行任何编码更改
当我调试代码时,我没有收到此错误,但是当我托管时,在iis上使用该网站,然后使用它,则出现此错误
I m working on asp.net website.
I m using javascript:back button to navigate to back page.
The back button was working fine initially , but now from last some days when i click back button i m navigated to refresh page.
But this occurs only on one page.
On my other aspx pages,where i have used back button, the back button is working fine.
I have not done any coding changes on he aspx page on which i m getting the error
When i debug the code i m not getting this error but when i host, the website on iis and then use it then i get this error
<a href="java<!-- no -->script:history.go(-1)" title="back" ><img src="back.gif" />
有人可以告诉我如何解决此问题吗?
Can someone tell me how to solve this problem
推荐答案
javascrit:back
只是为了确保这应该是javascri p t:back
检查是否已禁用该页面的缓存.如果页面具有无缓存头,则将从服务器提供该页面.
javascrit:back
Just to make sure, this should be javascript:back
Check if you have disabled caching for that page. A page will be served from the server if it has no-cache headers.
这篇关于后退按钮无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!