Navigation Question

G

Guest

Hi Guys,

When browsing through my application, when i hit the back button, i get the
error "Page cannot be displayed" error. If i refresh, i get the page fine.

Can someone tell me why this is happening and what can i do to fix it?

Thanks

manny
 
G

Guest

browser does not refresh pages when the Forward and Back buttons are used.
Pages accessed through the navigation history stack are always pulled from
the cache

above is from MSDN..

Pls look for code to expire the cache in the pages that doesnt get loaded
when navigated to using back button.. if the pages got some lines like below
, those are the ones making the pages un available..

Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now-new TimeSpan(1,0,0));
Response.Cache.SetLastModified(DateTime.Now);
Response.Cache.SetAllowResponseInBrowserHistory(false);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Question 2
General Question 2
Question 2
error setting headerimageurl in asp:TemplateColumn 1
Security Question 1
Control panel visibility 1
IE6 and page size 1
Page cannot be displayed. 2

Top