Skip to content

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

Notifications You must be signed in to change notification settings

geeksarray/render-partialview-with-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published