Substitution control works incorrect

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?UGV0ZXI=?=

    #1

    Substitution control works incorrect

    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 <HTMLtag, just like using
    response.write. When I turn off the page cache, it works correctly. What
    could be the reason?
  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: Substitution control works incorrect

    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


    or just read it:


    *************** *************** **************
    | Think outside the box! |
    *************** *************** **************
    "Peter" <Peter@discussi ons.microsoft.c omwrote in message
    news:3136C300-14D4-4EE5-B93D-198A0166BC95@mi crosoft.com...
    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 <HTMLtag, just like using
    response.write. When I turn off the page cache, it works correctly. What
    could be the reason?

    Comment

    • =?Utf-8?B?UGV0ZXI=?=

      #3
      Re: Substitution control works incorrect

      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).


      "Cowboy (Gregory A. Beamer)" wrote:
      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

      >
      or just read it:

      >
      *************** *************** **************
      | Think outside the box! |
      *************** *************** **************
      "Peter" <Peter@discussi ons.microsoft.c omwrote in message
      news:3136C300-14D4-4EE5-B93D-198A0166BC95@mi crosoft.com...
      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 <HTMLtag, just like using
      response.write. When I turn off the page cache, it works correctly. What
      could be the reason?
      >
      >

      Comment

      Working...