Substitution control works incorrect

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

In our application consisting of several custom user controls we want one of
these controls to be excluded from the page cache. For this I tried to use
the substitution control for output cache substitution. But this control
renders at the top of the page before the <HTML> tag, just like using
response.write. When I turn off the page cache, it works correctly. What
could be the reason?
 
Have you looked at Partial Page Output Caching? You can avoid caching on the
parts of the page that contain the controls you do not wish to cache. Less
kludgy than substitution.

http://msdn.microsoft.com/en-us/library/h30h475z.aspx

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
I thought about this, but I found out that I can't use this. When page cache
is on and the caching time is longer than the control caching time, the page
cache time has preference (and page cache must be on).
 
Back
Top