ViewDataFactory and strongly typed master pages
问题 Im trying to get my strongly typed master page to work in my ASP MVC 2.0 application. I have come far with the help of these two posts: Passing data to Master Page in ASP.NET MVC Strongly Typed ASP.Net MVC Master Pages Problem is that im not sure how to get that ViewDataFactory code to work, this is my code: BaseController.cs public class BaseController : Controller { private IPageRepository _repPage; public BaseController(IPageRepository repPage) { _repPage = repPage; } protected T