Tuesday, March 31, 2015

Master Page in ASP.NET

An ASP.NET Provide the template called master page that is for define
the core layout of the pages in your site. This information is common to all
pages that use the same master page.

Advantage

They allow you to centralize the common functionality of your pages so that you can make updates in just one place. They make it easy to create one set of controls and code and apply the results to a set of pages.

For example, you can use controls on the master page to create a menu that applies to all pages. They give you fine-grained control over the layout of the final pages by llowing you to control how the placeholder controls are rendered. They provide object models that allow you to customize the
master pages from individual content pages.

A master page is defined with the file extension .master. Master pages are very similar to regular.aspx pages. They contain text, HTML, and server controls; they even have their own codebehind files.

One difference is that a master page inherits from the Master Page class. Another is that instead of an @ Page directive at the top of the page source, master pages contain an @ Master directive. Following this are the common things you would expect to

Master Page can be nested.


No comments:

Post a Comment