[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

npverni

1/19/2006 3:42:00 PM

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

1 Answer

Alvin Bruney [ASP.NET MVP]

1/24/2006 9:55:00 PM

0

create the toolbar in the application object and store it there. when you
need it, pull it out of the application object

--
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
-------------------------------------------------------



<npverni@gmail.com> wrote in message
news:1137685302.732981.256950@g43g2000cwa.googlegroups.com...
> 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
>