Explain master pages.
A master page is an ASP.NET file with the extension .master with a predefined layout that can include
static text, HTML elements, and server controls.
They are similar to ordinary ASP.NET pages except that hey can’t be viewed directly through the
browser. They are instead used by other pages known as content pages.
They majorly describe the structure of other page.
List the steps involved in implementing Master pages.
Step 1:
Open new project in visual studio
Step2;
Select ASP.NET web Application and click ok
Step3;
Choose empty project and click ok
Step4;
Click on the name of the project and go to add, then select new item
Step5;
Choose the Web forms master page and click add.
Step6;
Click on the name of the master page you just added on the solution explorer on the right side.
Step7;
Design the mater page the way you want it
Step8;
Now to add a web form to our project, click on the name of the project and select add>new item
Step9;
Select Web pages with master pages and click add
Step10;
After clicking on that, add the button Window, open the selected masterpage->site1.master and click
OK.
Step11;
Now design your home page and it will take the master page’s design.