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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -