How to pass Model from a view to a partial view?
- by chobo2
Hi
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 strongly typed view?
I tried something like
public ActionResult Test()
{
MyData = new Data();
MyData.One = 1;
return View("Test",MyData)
}…