开发者

asp.net OnPreRender doesn't fire after a Redirect in IE

When I run the following logic:

1) from Page1.aspx

Response.Redirect("Page2.aspx?Params...")

2) from Page2.aspx Page_Load event

Response.Redirect("Page1.aspx")

The Page1 OnPreRender event does not fire if the browser is IE8. Its ok with Firefox.

It seems that the browser is loading a cached version of the page.

Any idea how to force IE wor开发者_如何学运维k like FF?

Thanks

Eduardo


disable caching on your page Pageq.aspx by using Response.Cache.SetCacheability(HttpCacheability.NoCache); in Page_load

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜