I want to use @Html.Partial("_partialView")
to include a partial view on my page in MVC 3.
Both the page and the viewmodel have a viewmodel; thus, the following error is generated:
The model item passed into the dictionary is of type '[...]page', but this dictionary requires a model item of type '[...]partialview'.
How can I use the @Html.Partial()
method while keeping the two viewmodels?