How to Create a Master Page in Visual Studio?

To keep the core layout of your pages consistent you can use master page in your asp.net application. Master pages allow you to keep layout consistent within all the pages of your asp project. There are few more advantages of using master pages in your project: -
Master pages allow you to centralize the common functionality of your pages so that it reduces work to update every page for same content.

- With object model allowed by master pages you can customize master page from the individual content pages.

- Single control can be applied on all content pages with the help of master page. For example, login navigation menu can be kept common with master pages.
Master page has extension .master.

They contain almost everything that .aspx file contain plus their own code behind files.

It’s inherited from MasterPage class and instead of Page directive they has @Master directive.  

How to create master page in visual studio?

You can create master page in visual studio using these instructions:
1. Right Click on Project Folder > Add New item.
2. Select “Master page” in the list.
3. Click Save. Now you’ve master page in your project folder.

You’ve to edit and define your page. While adding content pages in the project folder make sure you select your masterpage in order to associate .aspx pages with masterpage.