Sean Carpenter

Thoughts on Development

  Home  |   Contact  |   Syndication    |   Login
  16 Posts | 1 Stories | 1 Comments | 6 Trackbacks

News



Twitter












Archives

Post Categories

About

December 2007 Entries

There is a discussion occurring on the ASP.NET forums about passing data to Master Pages using ASP.NET MVC. I couldn't figure out how to post code in the forums, so this post contains an example of the solution I am currently using. I defined a "container" class that contains the data for the specific view and the data needed by the master page. It looks like this: public class ViewDataContainer<T> { public ITopMenuData TopMenu { get; set; } public ILeftMenuData LeftMenu { get; set; } public...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati