Hi Saravana.
In regards to "disabling the IE Back button" in my ASP.NET application ...
My objective is to prevent the user from seeing any of the pages previously
visited in my application -- so removing them from the cache sounds like the
correct solution.
I assume with your solution, the "Back" button stays visible on the browser?
What happens if the user clicks it? I'd prefer that the current page remain
shown.
Response.Buffer = True
Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0))
Response.Expires = 0
Response.CacheControl = "no-cache"
Where to locate the above code? Does it have to be placed in every page?
Such as in the OnPreRender event ?
Or is there a way to implement this technique globally for my entire asp.net
application ?
Thanks.
John.
--------------
you wrote:
"Saravana" <
[email protected] in message
Its not possible to do that in asp.net. If your requirement is that user
shouldnt see the cached page by clicking back button, then check out this
faq
http://www.extremeexperts.com/Net/FAQ/DisablingBackButton.aspx