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

How does cookies work in asp net?

758


Explain the asp.net session state modes.

829


Define a multilingual website?

728


What is a user developed application?

722


Can a master page have more than one contentplaceholder?

732


What is Pre-Render event in ASP.NET?

813


Explain the namespace classes used in asp.net mvc? : asp.net mvc

752


What is the main function of url routing system in asp.net mvc? : asp.net mvc

712


What is mvc in asp.net tutorial? : Asp.Net MVC

794


Explain what is clr?

823


What is difference Between Authentication and authorization?

816


Explain the difference between or and orelse?

722


What is the difference between pathparam and queryparam?

794


What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?

763


When cookie will expire?

781