Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / March 2004

Tip: Looking for answers? Try searching our database.

output cache for backward navigation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jt - 16 Mar 2004 18:46 GMT
When a user revisits a page on our site via a menu dropdown, I'm required to display the page as it was when the user last left. (By the way, the browser back button is disabled.) The approach we use now is to rebuild the page with information stored in the cache (and differentiated with a sessionid) . This seems like needless much work for the server. I'm wondering if there is a way to use varybycustom feature of the output cache to preserve the most recent version of the page on a session level

I've had no success with these:

<%@ OutputCache Duration=“300" VaryByParam="None" VaryByCustom=“sessionid”%>

Public Overrides Function GetVaryByCustomString(
ByVal context As System.Web.HttpContext,
ByVal custom As String) As Strin

If custom = "sessionid" The
  return = context.session.sessionid
End I

End Functio

In GetVaryByCustomString, the session object is nothing.  
Even if it were not "nothing," I'm unsure about what version of the page would be in the output cache - the original version when first called up, or the version after editing
John Saunders - 16 Mar 2004 20:02 GMT
> When a user revisits a page on our site via a menu dropdown, I'm required to display the page as it was when the user last left. (By the way, the
browser back button is disabled.)

Interesting. Did you also disable the address bar, favorites and shortcuts?
I and many other readers of this newsgroup would like to know how you did
that.
Signature

John Saunders
John.Saunders at SurfControl.com

jt - 17 Mar 2004 02:01 GMT
I used "disable" as a shortcut term. The developer who did the work used "window.history.forward," so the button is there, but in effect it does nothing.
Ravichandran J.V. - 23 Mar 2004 12:40 GMT
How did you disable the backward button?

with regards,

J.V.Ravichandran
Signature

- http://www.geocities.com/
 jvravichandran
- http://www.411asp.net/func/search?
 qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com 
- http://www.MSDNAA.Net 
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
 display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
 at http://www.Google.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.