|
-
Apr 25th, 2005, 03:08 PM
#1
Thread Starter
Hyperactive Member
Cache
How to ensure that the page is not loaded from the cache when hit the back button of the browser in ASP.NET?
-
Apr 25th, 2005, 04:53 PM
#2
Frenzied Member
Re: Cache
Just don't cache the page.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Apr 26th, 2005, 04:26 AM
#3
Frenzied Member
Re: Cache
I think he means stopping the browser caching the page.
Code:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetAllowResponseInBrowserHistory(false);
The first method sets the cache-control HTTP header. This header controls how docuemtns are cached on the cache capable devices.
The second method indicates whether the response will be kept in the browser history.
HTH
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
Apr 26th, 2005, 07:16 AM
#4
Thread Starter
Hyperactive Member
Re: Cache
Shall I place this code in the Page_Load event. I am using vb.net as the code behind for asp.net
-
Apr 26th, 2005, 08:43 AM
#5
Frenzied Member
If I have been helpful please rate my post. If I haven't tell me!
-
Apr 26th, 2005, 03:27 PM
#6
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|