What is the Use of _viewStart.cshtml View File?

Forums ASP.NET MVCWhat is the Use of _viewStart.cshtml View File?
Staff asked 3 years ago

What is the Use of _viewStart.cshtml View File?

Answers (1)

Add Answer
Staff answered 3 years ago

_Viewstart.cshtml is used to distribute common UI functionality across the Views in the folder where it is stored.

We may utilize the _ViewStart page instead of defining the Layout page in each view page. When a View Page Start is executed, the “_ViewStart.cshtml” page assigns the Layout page to it.

Subscribe

Select Categories