现在的位置: 首页 > 综合 > 正文

asp.net 清除缓存-OpenShowDialog模式下

2012年02月19日 ⁄ 综合 ⁄ 共 270字 ⁄ 字号 评论关闭

    在showdialog模式下,经常会出现调用open时,不访问服务器端,仅从缓存获取数据。

    加了一下代码到header内,就不会出现这种状况。

    <base target="_self" /> //在自身打开窗口,如果不设置,重新加载页面会在新窗口打开
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Pragma" content="no-cache">

抱歉!评论已关闭.