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

Where the cookie value is stored?

732


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

779


Why would a company use an application service provider?

712


What is viewstate information stored?

855


What is event in asp.net?

762


What are Master Pages in ASP.NET?

796


What kind of programming language is ASP.NET?

847


What is the purpose of using MVC programming pattern in ASP.NET?

791


How many languages are supported by .NET at present time?

559


What is the difference between application state and session state in asp net?

782


How do you change the session time-out value?

801


What is the purpose of App_Code folder in ASP.NET? Why we this?

894


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

816


What is Bundling and Minification in MVC?

787


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

802