473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Output cache

Is it possible to create OutPutCache vary by folder of the page?

regards,
Simon
Nov 19 '05 #1
3 862
I'm not sure I understand what you are looking for, simon. I'd think
this would be the same as VaryByParam="none", after all, the page can
only exist in one directory.

Or are you talking about user controls, perhaps?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 28 Jun 2005 14:01:15 +0200, "simon"
<si*********@stud-moderna.si> wrote:
Is it possible to create OutPutCache vary by folder of the page?

regards,
Simon


Nov 19 '05 #2
Hi scott,

yes, I have one user control.

Then I have directories for user, manager and for agent.

User control has different functionality, depends on directorie where it
resides.

So, I have 3 different formats of the same user control and I would like
that all 3 are in the cache(they are static).

Is there any way to do that?

regards,
Simon
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:k0********************************@4ax.com...
I'm not sure I understand what you are looking for, simon. I'd think
this would be the same as VaryByParam="none", after all, the page can
only exist in one directory.

Or are you talking about user controls, perhaps?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 28 Jun 2005 14:01:15 +0200, "simon"
<si*********@stud-moderna.si> wrote:
Is it possible to create OutPutCache vary by folder of the page?

regards,
Simon

Nov 19 '05 #3
Do they use a Label control, or some other control that the parent
page might set that uniquely identifies the control? If so, I've used
VaryByControl in cases like this.

If nothing else, you can use VaryByCustom to cache by almost any key
you can think of. Inside of the VaryByCustom method you can look at
the request object and return the path where the request is executing.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 29 Jun 2005 09:15:06 +0200, "simon"
<si*********@stud-moderna.si> wrote:
Hi scott,

yes, I have one user control.

Then I have directories for user, manager and for agent.

User control has different functionality, depends on directorie where it
resides.

So, I have 3 different formats of the same user control and I would like
that all 3 are in the cache(they are static).

Is there any way to do that?

regards,
Simon


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Martin | last post by:
Hi. I had a very frustrating afternoon and evening but I have got it all under control now so all of a sudden I am in a good mood. I want to share some insights on output caching with you lot. ...
2
by: Mark | last post by:
Output caching is a wonderful thing - but it apparently makes no distinctions among users. What would be good way to output cache a page per user? In my ASP.NET Web application authenticated users...
2
by: Welman Jordan | last post by:
Hello, I met with a tough problem when making my pages. Please help. To make the problem short, i write down what i want here first, and then explain my situation in details. How can I...
3
by: Vish | last post by:
Is there a way to see the output cache entries in the httpcontext ? i tried looping thru the items in the cache but they dont seem to be there. I know there are several ways to remove them using...
0
by: SharpSmith | last post by:
hi i have a strange problem with OutPut cache working fine on development box and not working on production server background : @outputCahce directive is fine, but wanted to make centralized...
2
by: thecoolone | last post by:
I am trying to implement the yahoo search api using php. I prefer to use PHP serialized to get the result of the search displayed. Right now i get the output like: Array ( =Array ( =web ...
2
by: aptenodytesforsteri | last post by:
I have an ASP.NET 2.0 application I've localized to English, French, German, and Italian. I used resource (.resx) files. Most of the site is static content, easily 90% of it, so I thought...
2
by: Cramer | last post by:
I'm creating a custom handler that does not extend Page (only implements IHttpHandler) - and I would like for its output to be cached to improve runtime performance. I would like to leverage...
7
by: Mark B | last post by:
How do I have a SiteMap based on the output of a stored procedure? (I want to pass a @LanguageCode parameter to it so it will display the top Menu in the appropriate language).
2
by: Ken Fine | last post by:
I have a question about ASP.NET output caching. I want to use screen scraping as a temporary hack to pull in some complex Classic ASP-rendered content into some ASP.NET pages: protected String...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.