Re: How to make an ASPX Page Become non-backable??
- From: "Joerg Jooss" <news-reply@xxxxxxxxxxxxx>
- Date: Sat, 18 Jun 2005 23:14:06 -0700
RC wrote:
> Hi,
>
> How to make a Page Become time expired when user press back button?
> Any Sample Code or reference provided?
There's no guarantee that a browser applies caching or expiration
instructions to locally stored pages. Still, for most browsers this
does work.
Either set the OutputCache directive on your page(s)
<%@ OutputCache Location="None" %>
or set the Cache property of the HttpResponse in your code-behind class:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
(which is equivalent to the directive shown above)
Cheers,
--
http://www.joergjooss.de
mailto:news-reply@xxxxxxxxxxxxx
.
- References:
- Prev by Date: Re: How to get Selected item in a Databinded CheckBoxList when CheckBoxlist is in a DataList?
- Next by Date: CheckBoxList in DataList Question?
- Previous by thread: How to make an ASPX Page Become non-backable??
- Next by thread: CheckBoxList in DataList Question?
- Index(es):