I have a navigation bar user control that is very expensive to create
from the database. This toolbar will only change when the user
navigates to a different section (there are three in total). What I
would like to do is cache the toolbar while the user is in a current
section, and only load it again when they change sections. Or , if I
could somehow cache all three on the initial page load and then
programatically load the desired one from the cache that would also
work. Any suggestions?
Also, the way the application is setup - the current section is not
stored in the querystring, rather the navigation controls discover the
section recursively from their parent pages.
Thanks
Alvin Bruney - ASP.NET MVP - 24 Jan 2006 21:54 GMT
create the toolbar in the application object and store it there. when you
need it, pull it out of the application object

Signature
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------
> I have a navigation bar user control that is very expensive to create
> from the database. This toolbar will only change when the user
[quoted text clipped - 10 lines]
>
> Thanks