Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2004, 03:24 PM
Authorized User
 
Join Date: Sep 2003
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to flyin
Default How-To: Programatically Set Output page caching

Hello All,

I am trying to create this system such that i can change have the user set how long they want their homepage to be cached for, which i'm not sure entirely if i can do it beccause that value might have to be static and compiled into the app and if this is the case that's fine i'll set one value for all homepages. But anyways, i need something to do the following:

We have the way of declaritevly settings the output cache in the html side of things:

<%@ OutputCache Duration="60" VaryByParam="SID"%>

What i want is to be able to do this in the codebehind.

Is there such a thing that exists?

i know you can set the cachetime out and what not with
response.Cache.SetExpires and whatever else, but i have not found how to set the varybyparams programitcally which is a very big piece for me! thanks for all the great help in advance!

JR






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to refresh the page without allowing caching malay mehta PHP FAQs 0 March 5th, 2007 01:22 AM
best way to prevent page from caching crmpicco HTML Code Clinic 2 March 17th, 2006 09:02 AM
Page caching cridley ASP.NET 1.x and 2.0 Application Design 3 January 9th, 2006 07:58 PM
Set Decimal Places Programatically ritag Excel VBA 2 August 16th, 2004 09:18 AM
Preventing Page Caching neeter HTML Code Clinic 3 June 5th, 2003 01:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.