Skip to content

Latest commit

 

History

History
25 lines (10 loc) · 1.27 KB

README.md

File metadata and controls

25 lines (10 loc) · 1.27 KB

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