|
| Have you spent hours using asp.net user web controls in order to reuse layout code across you site in order to get a consistent look and feel to your site and reuse your hard developed code. Well you will be glad to here that this task has been made a whole lot easier. The Master Pages feature provided by ASP.NET 2.0 and our hosting packages make provide the ability to define common structure and interface elements for your site, such as a page header, footer, or navigation bar, in a common location called a "master page", to be shared by many pages in your site. This improves the maintainability of your site and avoids unnecessary duplication of code for shared site structure or behavior. |
|
|
|
|
|
|
Master and Content Pages
The concept of master pages is similar to class inheritance, You define a master page asp.net page which is similar to a base class and your content pages derive from the master page ASP.Net page. Your content pages get the look and feel of the master page by default but you have the option of overriding this in the content page. You define a Master Page like defining a normal page it can contain markup, controls, or code, or a combination of these elements. The master page has a .master file extension. A Master Page usually contains a special type of ASP.NET control, called a Content Placeholder. The Content Placeholder defines a region of the master page rendering that can be substituted with content from a page associated to the master. A Content Placeholder can also contain default content, just in case the derive page does not need to override this content.
|
|
|
|
Read More
|
|
|
|
|