What is the point of Partial Views in Asp.net MVC

后端 未结 8 1962
北恋
北恋 2020-12-30 00:49

Ive noticed that there seems to be no real difference between a view and a partial view. For instance, one can create a view but can render it as a

8条回答
  •  心在旅途
    2020-12-30 01:28

    Think of partial views as user controls in ASP.NET WebForms. Partial views are used if you want to have a functionality centralized, so it can be used in many parts of your website. This is the purpose of partial views.

    Hope I have answered your question.

提交回复
热议问题