I have a view that is not strongly typed. However I have in this view a partial view that is strongly typed.
How do I do I pass the model to this st
You should extend your model so that it can provide all necessary fields for the view (this is called ViewModel) or you provide them seperately with ViewData.
public ActionResult Test()
{
MyData = new Data();
MyData.One = 1;
ViewData["someData"]=MyData;
return View();
}
then:
<% Html.RenderPartial("PartialView",ViewData["someData"]); %>
ViewData is a nice losely typed dictionary