I have a partial view in MVC 3 .NET. Every time I render the partial view, I get an error saying the Model is null. I would like for the partial view to get the data itself without passing data to it. Is it possible?
Edit @html.partial("_partialView")
In the Partial View @Model is null and if I try to access any property of @Model, it crashes since it is null. So I need that everytime I call @html.partial("_partialView"), the partial view to get the data from the server and populate @Model.
Thanks for your help guys!