Geeks With Blogs
Sean Carpenter Thoughts on Development December 2007 Entries
Passing Data to Master Pages with ASP.NET MVC
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 ......

Posted On Friday, December 14, 2007 5:25 PM

Copyright © Sean Carpenter | Powered by: GeeksWithBlogs.net