0
j'appellez render partiel comme celui-ci dans MVC 1.0:Appel à Render partiel ne fonctionne pas après MVC 2
<% Html.RenderPartial("~/views/shared/categories.ascx", ViewData.Model.Categories); %>
Maintenant après la chute MVC 2.0 années .dll, je reçois l'erreur:
CS1061: 'object' does not contain a definition for 'Categories' and no extension method 'Categories' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
Qu'est-ce qui a changé?
Dois-je mettre à jour ma solution ou tout ce qui passe de mvc 1 à 2?