Reputation: 13585
I want to load another controller'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?
Upvotes: 0
Views: 757
Reputation: 16583
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.
Upvotes: 1