Render partial view with dynamic model in Razor view engine and ASP.NET MVC 3

前端 未结 7 1249
日久生厌
日久生厌 2020-12-05 09:28

When I try to render a partial view whose model type is specified as:

@model dynamic

by using the following code:

@{Html.Re         


        
相关标签:
7条回答
  • 2020-12-05 10:06

    Can also be called as

    @Html.Partial("_PartialView", (ModelClass)View.Data)
    
    0 讨论(0)
提交回复
热议问题