开发者

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

开发者 https://www.devze.com 2023-01-14 06:14 出处:网络
When I run the following logic: 1) from Page1.aspx Response.Redirect(\"Page2.aspx?Params...\") 2) from Page2.aspx Page_Load event

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

精彩评论

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