2010-09-01 16 views
1

當我運行以下邏輯:從Page1.aspx的asp.net的OnPreRender一個重定向後不觸發在IE

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

2)從Page2.aspx Page_Load事件

1)

如果瀏覽器IE8是
Response.Redirect("Page1.aspx") 

當前第1/1頁的OnPreRender事件不會觸發。它確定與Firefox。

看來,瀏覽器正在加載頁面的緩存版本。

任何想法如何強制IE工作像FF?

感謝

愛德華

回答

0

禁用緩存您的網頁Pageq.aspx對在Page_Load中

+0

維奈,由於使用Response.Cache.SetCacheability(HttpCacheability.NoCache); 。只是爲了糾正錯字:Pageq.aspx = Page1.aspx – EduXavier 2010-09-01 20:56:35

相關問題