I would like to somehow have my site's navigation structure in an XML file or as a data object that every single page will have access to.
In turn, I will have several different user controls that will be driven by this navigation data that will display the cookie trail, page titles, drop down menu etc...
So what's the most efficient way to have this data available on every page (caching?) ?
And is there a way to have these user controls access the data? I've heard that User controls can't access page properties or methods... is this really true?
Just so that you know that the majority of the pages are practically just HTML and if there is away to do all this without having to define a codebehind page for every page then that would be fantastic.
Many thanks in advance for an help or advice,
SamHi,
You can put the common features in an Usercontrol and cache the same for specific duration to avoid the round trip to server.
Uercontrol's can access the properties in a page with the help of "Properties" and "Delegates"
Check thisArticle on how to acheive it.
Thanks.
0 comments:
Post a Comment