0
我有一個表格,當我提交了一個感謝頁面。點擊到新頁面的鏈接,然後返回到謝謝頁面(通過按回)頁面,然後顯示頁面過期。這發生在所有瀏覽器上。我怎樣才能讓它顯示感謝頁面?每個瀏覽器的頁面過期
HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
HttpContext.Current.Response.Cache.SetValidUntilExpires(false);
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoStore();
我如何能建立說與表單提交條件 – user3328513
一個cookie當您提交表單,創建在Page_Load中一個cookie和窗體頁上檢查Cookie進行任何額外的幫助。檢查此URL http://msdn.microsoft.com/en-us/library/aa287533(v=vs.71).aspx –
歡呼我會給那一個去吧:) – user3328513