What is Master Page in Asp.net?

Answer Posted / wai zin

A master page is similar to an ordinary ASP.NET web form.
Like a web form, the master page can include HTML, web
controls, and code (either in an inline script block or in a
separate file).The difference between master pages and
ordinary web forms is that master pages can use the
ContentPlaceHolder control, which isn’t allowed in ordinary
pages. The ContentPlaceHolder is a portion of the page
where the content page can insert content.When you create a
new master page in Visual Studio, you start with a blank
page that includes two ContentPlaceHolder controls. One is
defined in the <head> section, which gives content pages the
ability to add page metadata, such as search keywords and
stylesheet links. The second, more important
ContentPlaceHolder is defined in the <body> section, and
represents the displayed content of the page.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have multiple web config files for an asp.net application?

531


What is http protocol and how it works?

525


Is it possible to change the index of primary key on table?

406


How does session id work?

486


Where sessions are stored in asp.net?

532






What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?

1417


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

517


What is the difference between web.config and machine.config in ASP.NET?

592


What are the different types of Caching techniques in ASP.NET?

569


Explain how cookies work. Give an example of cookie abuse.

713


In how many ways we can retrieve table records count?

532


What is difference between inproc and outproc?

653


What are main return types supported in Web API?

742


What is diff. Between abstract class and an interface?

517


How ASP.NET page works?

672