Thursday, July 22, 2021

What is the difference between View and Partial View?

 View:

=> It contains the layout page

=>Before any view is rendered, viewstart page is rendered

=>View is not lightweight as compare to Partial View

Partial View:

=> It does not contain the layout page

=> Partial view does not verify for a viewstart.cshtml. We cannot put common code for a partial view.

=> We can pass a regular view to the RenderPartial method




No comments:

Post a Comment