Lost
Lost

Reputation: 13585

Loading another controller's view using MVC

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

Answers (1)

Harper Shelby
Harper Shelby

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

Related Questions