|
| 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. |
|
|
|
|
|
|
|