|
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?
|
|
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!
|
|
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.
|
|
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!
|
|