Hello,
Issue solved (used VaryByCustom attribute and method inside Global.asax.cs class)
Regards
Marcin
[quoted text, click to view] m_now@o2.pl (Marcin) wrote in message news:<d71a96eb.0307290559.3c4bebd@posting.google.com>...
> Hello,
>
> I already posted this question on aspnet.caching - but this group
> seems to be more active.
>
>
> I have created a navigation control that highlights current path based
> on the URL (works ok).
>
> In order to speed it up I declared the output caching inside my
> navigation control.
>
> 5 seconds just for a test...
> <%@ OutputCache Duration="5" VaryByParam="none" %>
>
> The control is loaded to my template page through "LoadControl"
> method.
>
> The problem is that it does not care what is the current page name and
> reuses the cached output across multiple pages.
>
> Is there any way to indicate that cached control should have a unique
> instance per page?
>
>
> Thank you a lot for help !
>
> Best regards