Loading another controller's view using MVC
I want to load another cont开发者_运维百科roller's view using MVC. I do it using something ike return View(~/view/Controller/action);
Now this is a stringly typed view and I am using aspx pages to do that. When it loads, it says that Model is Null. How can I do this?
I think you're looking for this overload of View(). The version you're calling doesn't pass in the Model, resulting in and exception.
精彩评论