Welcome Guest Search | Active Topics | Sign In | Register

OutputCache vs Callback Panels Options
Jeff Lundgren
Posted: Wednesday, June 10, 2009 3:54:34 PM
Rank: Advanced Member
Groups: Member

Joined: 8/22/2007
Posts: 30
Ive noticed that if you have a user control on a page, using OutputCache to cache the user control, that any callback on the page, won't work when that user control is being cached.

Once OutputCache is taken off the user control, it works time after time as it should (not just the first time).

Thoughts?
eo_support
Posted: Wednesday, June 10, 2009 4:04:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe that is the correct behavior. ASP.NET won't even invoke any server code when OutputCache is on on a user control, while the whole purpose of the CallbackPanel is to go back to the server to execute some server code to update.

Thanks!
Jeff Lundgren
Posted: Wednesday, June 10, 2009 4:34:49 PM
Rank: Advanced Member
Groups: Member

Joined: 8/22/2007
Posts: 30
But the callback control isn't on the user control being cached, its on the main page. Its almost as if the user control's caching mechanism affects the container aspx page settings.
eo_support
Posted: Wednesday, June 10, 2009 4:47:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
I see. We do not know how they would affect each other at this moment then. We will look into it and see what we can find.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.