代码之家  ›  专栏  ›  技术社区  ›  Youssef

asp.net中的IE6回发

  •  1
  • Youssef  · 技术社区  · 17 年前

    我有一个页面,其中包含一个用户控件,它只是一个个性化的下拉列表。我将属性指定给每个项目 onClick=__doPostBack('actrl',0) .

    当我点击页面回发精细,我得到了预期的结果。但是,在IE6中,我的页面不会更改为从服务器加载的新值。

    我试图在页面上禁用缓存,但没有成功。

    使用所有这些代码

    Response.CacheControl = "no-cache"
    Response.AddHeader("Pragma", "no-cache")
    Response.Expires = -1
    Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
    Response.Cache.SetCacheability(HttpCacheability.NoCache)
    Page.Response.Cache.SetExpires(DateTime.Now.AddDays(-30))
    Page.Response.Cache.SetCacheability(HttpCacheability.NoCache)
    Page.Response.Cache.SetNoServerCaching()
    Page.Response.Cache.SetNoStore()
    Response.Cache.SetNoStore()
    

    这个问题只发生在IE6中。

    2 回复  |  直到 7 年前
        1
  •  3
  •   scunliffe    17 年前

    这是一个已知的IE6错误(#223),带有神奇的HTTP get请求。

    请参见此处的错误: http://webbugtrack.blogspot.com/2007/09/bug-223-magical-http-get-requests-in.html

    当内联事件处理程序导致IE6中的页面更改时,就会发生这种情况。

        2
  •  0
  •   FlySwat    17 年前

    推荐文章