Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to make an ASPX Page Become non-backable??

Reply
Thread Tools

How to make an ASPX Page Become non-backable??

 
 
RC
Guest
Posts: n/a
 
      06-19-2005
Hi,

How to make a Page Become time expired when user press back button?
Any Sample Code or reference provided?

Thanks
RC


 
Reply With Quote
 
 
 
 
Joerg Jooss
Guest
Posts: n/a
 
      06-19-2005
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.No Cache);

(which is equivalent to the directive shown above)

Cheers,
--
http://www.joergjooss.de
mailto:news-
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Become The master in computer hardware to become successfull shilla Computer Security 1 01-22-2011 06:19 PM
Become The master in computer hardware to become successfull shilla VHDL 0 01-22-2011 04:45 AM
adding main.aspx.vb & main.aspx.resx under aspx John M ASP .Net 1 05-29-2005 09:27 PM
How to Pass values between from a popup page aspx & a normal page aspx Marco Antonio Montalvo Durán ASP .Net 2 01-23-2004 09:35 PM
How do I post data from aspx page to another aspx page. Sriram Mallajyosula ASP .Net 1 11-05-2003 04:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57