Search
4
votes
Html.Partial or RenderPartial with NULL value gets passed the wrong type

Description

If I render a partial from a view and pass a null value the base model type gets passed rather than the model / value I actually passed. This is counterintuitive and would force people to pepper their views with an extra 3rd parameter 99% of times. More detailed information in the SO question:

http://stackoverflow.com/questions/650393/asp-net-mvc-renderpartial-with-null-model-gets-passed-the-wrong-type

Please fix!!

File Attachments

No files are attached

Comments


Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.2.15.18416