What is Partial View in ASP.NET MVC?

A partial view is like as user control in ASP.NET Web forms that is used for code re-usability. Partial views helps us to reduce code duplication. Hence partial views are reusable views like as Header and Footer views.
We can use partial view to display blog comments, product category, social bookmarks buttons, a dynamic ticker, calendar etc.
It is best practice to create partial view in the shared folder and partial view name is preceded by “_”, but it is not mandatory. The “_” before view name specify that it is a reusable component i.e. partial view.

Tagged , . Bookmark the permalink.

Leave a Reply