ASP.NET MVC RenderPartial with null Model

If you’ll try to pass null to the RenderPartial method it will actually pull the model from the page and will, most likely, give an error.
So instead of
RenderPartial(“MyPartial”, item)

you better write
RenderPartial(“MuPartial”, new ViewDataDictionary { Model = item })

Just a quick note. Thanks to this forum post.