According to
http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconOutputCache.asp
and
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconcachingmultipleversion
sofusercontrolbasedonparameters.asp,
this sounds like VaryByControl directs the control to tie its caching
conditions (in a way that is unclear to me) to those of child control whose
ID matches the value of the VaryByControl attribute -- not quite what I'm
looking for. (I suppose that, with some work, I might be able to kludge
this into what I want, but...)
I'm looking for a way to direct the control to cache itself separately for
each value of an arbitrary specified property of that control. Sort of a
VaryByProperty="Flag" which would cause the control to be cached separately
for each value of the control's Flag property, as specified in the control's
HTML declaration (i.e., separately for Flag="One", Flag="Two", etc.).
I'm rather suprised that a VaryByProperty attribute of the @OutputCache
directive does not already exist (whether by that name or some other).
Again, unless I'm completely misunderstanding....
- Tom Kiefer
thogek @ earthlink . net
> Just a guess-- Have you looked at VaryByControl?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
concachingmultipleversionsofusercontrolbasedonparameters.asp
> Thanks,
>
[quoted text clipped - 62 lines]
> > > - Tom Kiefer
> > > thogek @ earthlink . net
Corey O'Mara - 10 Feb 2004 04:18 GMT
I believe VaryByControl is what you're looking for. VayByControl should
accept the name of a property of that control and you'll get different cache
variations depending on the value set in the prop.

Signature
Corey O'Mara
MCSD.NET, MCT
> According to
> http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconOutputCache.asp
> and
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconcachingmultipleversion
sofusercontrolbasedonparameters.asp,
> this sounds like VaryByControl directs the control to tie its caching
> conditions (in a way that is unclear to me) to those of child control whose
[quoted text clipped - 17 lines]
>
> > Just a guess-- Have you looked at VaryByControl?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
concachingmultipleversionsofusercontrolbasedonparameters.asp
> > Thanks,
> >
[quoted text clipped - 71 lines]
> > > > - Tom Kiefer
> > > > thogek @ earthlink . net