我如何...在后退按钮上显示“网页已过期” [英] How do I...show “webpage has expired” on back button
本文介绍了我如何...在后退按钮上显示“网页已过期”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好
我如何...在背面显示网页已过期或刷新按钮
谢谢...
解决方案
Mehdhi,
不太清楚,但我想这就是你要找的东西
添加这些Pageload中的行
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(DateTime.Now );
以上代码将禁用页面缓存,当单击后退/前进按钮时,当前页面将过期:)
Hi there
How do I...show "webpage has expired" on back or refresh buttons
thanks...
解决方案
Mehdhi,
Not very clear but I guess this is what you are looking for
Add these lines in Pageload
Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetExpires(DateTime.Now);
The above code will disable page cache,when back/Forward button is clicked,the current page will expire:)
这篇关于我如何...在后退按钮上显示“网页已过期”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文