You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article explains how you can render a partial view in the main view with model data.
4
+
5
+
You can render Partial View using **Html.RenderAction** and **Html.RenderPartial** helper methods.
6
+
7
+
## Files
8
+
9
+
1.**[Order Model](https://github.com/geeksarray/render-partialview-with-model/blob/master/RenderPartialViewWithModel/Models/Order.cs)** - Order Model with IEnumerable<OrderLineItem>
10
+
11
+
1.**[Order Line item Model](https://github.com/geeksarray/render-partialview-with-model/blob/master/RenderPartialViewWithModel/Models/OrderLineItem.cs)** - 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
12
+
13
+
1.**[Order HTML View with Model](https://github.com/geeksarray/render-partialview-with-model/blob/master/RenderPartialViewWithModel/Views/Order/GetOrder.cshtml)** - to show Order Model data on view.
0 commit comments