Fragment caching using Response.Redirect within Substitution Method

Discussion in 'ASP.NET / ASP.NET Core' started by Guimel, Oct 27, 2010.

  1. Hallo,

    I want to use fragment caching for a page in my application. For the parts which should not be cached I used the Substitution control. I recongnized that the method which is connected to the Substitution Control has to be static. Unfortunatelly I want to redirect the user within that medthod using the Response.Redirect method. But that's not possible, because the method has to be static. Now I have no idea to solve this problem.

    Is there a possibilty to use the Response Object within the Substitution Method?

    Thanks in advance,
    Guimel
     
  2. Okay, I solved that problem ... you can use the HttpContext object from the static method to redirect to a new page.
     
  3. mjp

    mjp

    Thanks for posting the follow-up.
     

Share This Page