Frequently Asked Interview Questions

Interview Questions on Master pages

Interview questions on Master Pages
ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page.
.master
The master page is identified by @Master directive, which replaces the @Page directive that is used for ordinary aspx page.
ContentPlaceHoder is a region where replaceable content will appear.
Yes, a master page can have more than one ContentPlaceHolder.
No, if you write any script outside of Content tag in a content page, you will get a compilation error.

Compilation Error: “Only Content controls are allowed directly in a content page that contains Content controls.”
Yes, controls in master page are accessible to content pages.
Master page and content page are merged during page initialization stage.

Most Visited Pages

Home | Site Index | Contact Us