![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have 2 pages to my application. The first page is a selection page, and this determines what data is displayed on the second page. The second page contains a datagrid, which is constantly needing to post back to the server to update information. I have seen numerous ways of disabling caching, such as: Response.Cache.SetCacheability(HttpCacheability.No Cache); or Response.Buffer = true; Response.ExpiresAbsolute = DateTime.Now.Subtract(new TimeSpan(1,0,0,0)); Response.Expires = 0; Response.CacheControl = "no-cache"; They prevent a cached page from being shown when back is clicked, but instead the page expired screen is displayed. So if my second page has posted back 10 times to update data, you'll see the page expired screen on each click of the back button up to the count of 10, before finally displaying my initial selection screen. I require that when back is clicked the page goes straight back to the initial selection screen. Any ideas? |
#3
| |||
| |||
|
|
I have 2 pages to my application. The first page is a selection page, and this determines what data is displayed on the second page. The second page contains a datagrid, which is constantly needing to post back to the server to update information. I have seen numerous ways of disabling caching, such as: Response.Cache.SetCacheability(HttpCacheability.No Cache); or Response.Buffer = true; Response.ExpiresAbsolute = DateTime.Now.Subtract(new TimeSpan(1,0,0,0)); Response.Expires = 0; Response.CacheControl = "no-cache"; They prevent a cached page from being shown when back is clicked, but instead the page expired screen is displayed. So if my second page has posted back 10 times to update data, you'll see the page expired screen on each click of the back button up to the count of 10, before finally displaying my initial selection screen. I require that when back is clicked the page goes straight back to the initial selection screen. Any ideas? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |