在asp.net中,怎么样能让在返回上一页时页面失效!
解决方案 »
- 如何有效地延长SESSION的生存期
- 网站中后台弹对话框。简单问题。在线等。。。。
- 一个很实用的功能:在邮件编辑状态下关闭网页,弹出对话框
- 如何在页面实现另存为的功能,但是不要用户动手另存。
- 向国庆期间还奋战在第一线的同志们致敬!! 国庆中秋大放分,放完回家去哦!进来都有份
- 大家帮忙帮忙,着急!在线等
- 问一个跟xsd有关的问题
- 不同页面怎么传递GRIDVIEW的值?
- 如何通过用.net编写的网站向用php编写的网站传递数据啊??.net和php是否可以共享会话、cookies?
- 对话框问题?
- 我的visual studio 2005工具写的中文注释怎么全变成乱码了阿。
- Repeater如何做班马效果
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
% >
或者
< html>
< head>
< meta http-equiv="Expires" CONTENT="0">
< meta http-equiv="Cache-Control" CONTENT="no-cache">
< meta http-equiv="Pragma" CONTENT="no-cache">
< /head>
Response.Expires = 0; //页面缓存期。以分来作单位。
Response.AppendHeader("pragma","no-cache"); //添加头。
Response.AppendHeader( "cache-control","private");
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-60));
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetValidUntilExpires(false)