Friday, October 17, 2014

Difference between View & Partial View in Asp.net MVC.

View & Partial View both render html in page so the difference that i identified between View and PartialView is :

View :

View can contains a complete html with multiple Partial view

View can have specific Layout ( Master Page in Aspx)

View that can be updated through normal @Html.BeginForm() & @Html.ActionLink()


Partial View :

Partial View are more lightweight then Standard View.

Partial View does not contains any Layout

Partial View Consider like a control in webforms, it is reusable.

we can use multiple partial view in single view.

Basically Partial View that can be updated through AJAX requests @Ajax.BeginForm() & @Ajax.ActionLink()


I hope this information will enought to understand about the difference between view & partial view. If you have still any error or confusion regarding this question leave here your comment or email me at mehulpatelk152@gmail.com

No comments:

Post a Comment