Re: How to expire a page (VB) ASP.NET

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



re:
!> expiring a page

Have you tried

<%@ OutputCache Location="None" %>

?



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
=========================
"AuntieAuntieAuntie" <AuntieAuntieAuntie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:68CB7F5F-485C-4325-B7C7-93A63AAF0507@xxxxxxxxxxxxxxxx
There are two pages, A and B.
Page A is the Login page and Page B is the results presented fromthe stored
procedure as well as a table which contains buttons that the user uses to
clock in an out during the day. With option "C" and "D" listed below the
database results are expired but the table which contains the button for
clocking in an out remains visible. No Cache option works in classic ASP but
the same results I have not been able to reproduce in ASP.NET.


The user can navigate, using the submit button, from A to B and are free to
return to A using the back button but they MUST not be able to naviagate from
A to B using the forward button. How to disable or otherwise minimize this
from occuring?
I have tired to use the following to expire the page, but nothing is working
thus far; which is interesting as in classic ASP expiring a page is a
cake-walk, but not in ASP.NET. Oh goodness, please help.

Thank you.

I have tried:
A. 'Cache set to No Cache
Response.Buffer = True
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
Response.Expires = -1 '.Subtract(New TimeSpan(1, 0, 0, 0)).ToString()
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
Response.AppendHeader("Cache-Control", "no-cache")
Response.CacheControl = "no-cache"

B.
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(DateTime.Now)

C.
Session.Abandon()

D.
Session.Clear()






.



Relevant Pages

  • Re: How to expire a page (VB) ASP.NET
    ... No Cache option works in classic ASP but ... I have tired to use the following to expire the page, ... 'Cache set to No Cache ...
    (microsoft.public.dotnet.framework.aspnet)
  • How to expire a page (VB) ASP.NET
    ... Page A is the Login page and Page B is the results presented fromthe stored ... No Cache option works in classic ASP but ... I have tired to use the following to expire the page, ... 'Cache set to No Cache ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [PATCH 5/7] autofs4 - fix direct mount pending expire race
    ... we cannot check the AUTOFS_INF_EXPIRING flag during a path walk ... which leads to lookups walking into an expiring mount while it is ... dentry until the expire is completed. ...
    (Linux-Kernel)
  • Re: Announcements Do Not Expire
    ... Cache is cleared, and to clarify. ... The announcemets are ... have passed their expiration date or not.. ... >Not expiring in the sense that they are still visible on ...
    (microsoft.public.sharepoint.teamservices)
  • RE: Notifying users of password expiration via e-mail`
    ... your users use OWA for email there is a notification that can be turned ... on if the password is expiring soon. ... It's worth checking out if all you off site users are using OWA. ... they cannot be notified at login time that their password will expire. ...
    (Focus-Microsoft)