0% found this document useful (0 votes)
17 views

Progarmming in ASP - NET Theory Assignment

A master page defines the structure and layout of ASP.NET web pages and can include static elements and controls. Content pages use the master page's design. To implement master pages, create a master page file, add content pages that reference the master page, then design the content pages which inherit the master page structure.

Uploaded by

LUBZ luresh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Progarmming in ASP - NET Theory Assignment

A master page defines the structure and layout of ASP.NET web pages and can include static elements and controls. Content pages use the master page's design. To implement master pages, create a master page file, add content pages that reference the master page, then design the content pages which inherit the master page structure.

Uploaded by

LUBZ luresh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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.

You might also like