Hi I have this line of code:
<% Html.RenderPartial("VenuesList"); %>
What I need to do is pass it my model via the additional parameters available in the overides. What do I write? My model is Venue. Thanks.
You could use the following overload allowing you to pass a model to the partial:
<% Html.RenderPartial("VenuesList", Model.SomeProperty); %>
or directly the model if it is of the correct type as expected by the partial:
<% Html.RenderPartial("VenuesList", Model); %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With