0
我打電話的MVC 1.0渲染部分是這樣的:下降MVC 2.0 .dll文件的後調用render部分MVC後不能正常工作2
<% Html.RenderPartial("~/views/shared/categories.ascx", ViewData.Model.Categories); %>
現在,我得到的錯誤:
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?)
改變了什麼?
我是否必須更新我的解決方案或從mvc 1到2的任何內容?