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

What is the Intermittent crashing of application in production?

647


Do gac'ed assemblies have fulltrust?

740


What is the current version of asp.net?

586


What is webresource axd?

546


Can we use a static function with a non-static variable?

589






What’s the catch?

709


Is asp.net free?

646


If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?

2081


What symbol specifies the beginning of a query string?

627


What is the size of Get method and how much data it can store?

678


how to debug web services on consumer side?

674


Is session server side or client side?

617


Explain the difference between Web Garden and Web Farm?

650


What is server redirect?

641


What are the advantages of asp.net?

629