asp.net mvc - Where to put master page's code in an MVC application? -


i'm using few (2 or 3) master pages in asp.net mvc application , must each display bits of information database. such list of sponsors, current fundings status etc.

so question was, should put these master-page database calling code?

normally, these should goes own controller class right? that'd mean i'd have wire them manually (e.g. passing viewdatas) since out of normal routing framework provided mvc framework.

is there way cleanly without wiring viewdata passing/action calls master pages manually or subclassing frameworks'?

the amount of documentation low... , i'm new including concepts of mvc please share tips/techniques on this.

one way put in masterpage view hook viewdata , define basecontroller : controller (or multiple base classes) db calls need.

what wanna quite same thing described in this articles.

i hope helps!

regards


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -