项目作者: geeksarray

项目描述 :
This article explains how you can render a partial view in the main view with model data.
高级语言: C#
项目地址: git://github.com/geeksarray/render-partialview-with-model.git


render-partialview-with-model

This article explains how you can render a partial view in the main view with model data.

You can render Partial View using Html.RenderAction and Html.RenderPartial helper methods.

Files

  1. Order Model - Order Model with IEnumerable

  2. Order Line item Model - Order line item entity with properties like OrderID, ProductID etOrder HTML View with Modelc.https://github.com/geeksarray/render-partialview-with-model/blob/master/RenderPartialViewWithModel/Views/Order/GetOrder.cshtml

  3. Order HTML View with Model - to show Order Model data on view.

    Order Partial View will be shown as below image

    Partial View Model

    For more detailed description visit - ASP.NET MVC Partial View with Model