Take default as an example:
Step 1: Load homemaster. ascx
Master. ascx is the default public class MPContainer: MetaBuilders. WebControls. MasterPages. ContentContainer.
{
Public MPContainer ()
{
}
/** // <Summary>
/// Override Onit to enable setting the MasterPageFile value to a known CS Theme
/// </Summary>
/// <Param name = "e"> </param>
Protected override void OnInit (EventArgs e)
{
If (this. MasterPageFile = null)
{
If (ThemeMasterExists)
This. MasterPageFile = ThemePath;
Else if (defamastermasterexists)
This. MasterPageFile = DefaultThemePath;
Else
Throw new Exception (string. Format ("The MasterThemeFile {0} cocould not be found in the {1} or default theme directory", ThemeMasterFile, ThemeName ));
}
Base. OnInit (e );
}
CS: MPContent of default. aspx will overwrite mpcontent of the same name in homeMaster. ascx
The region with the same name is replaced.
Similar to class inheritance: The master is the base class * The master inherits from the Master.
Similar to class inheritance: The master is the base class * The master inherits from the Master.
Main Content:
Lcr: leftmost,
Rightmost rcr
Stage
Headregion top