Rank: Newbie Groups: Member
Joined: 3/9/2009 Posts: 7
|
Hello,
I have a master page and several content pages that all reference the same master page. I have a TabStrip on each content page whose tab items are dynamically created in the Page_Load method of the content page. Suppose I am on page1.aspx with its TabStrip rendered properly. Then, I use the TabStrip to navigate to page2.aspx with its TabStrip again rendered properly. Now, if I use the Back button of the Internet Explorer to navigate back to page1.aspx, the TabStrip does NOT appear on page1.aspx (unless I refresh the page).
Is there any way to fix this problem? Your help is greatly appreciated.
Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Have you tried to disable caching on both pages? You can use the following code to disable cache:
Code: C#
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Thanks!
|
Rank: Newbie Groups: Member
Joined: 3/9/2009 Posts: 7
|
Great! I put your line of code in the Page_Load method of the master page and it works like a charm.
Thank you very much!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Cool. Glad that it works for you!
|