CS的页面结构
以default为例子:
第一步:加载homemaster.ascx
其中master.ascx是默认加载的
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(DefaultMasterExists)
this.MasterPageFile = DefaultThemePath;
else
throw new Exception(string.Format("The MasterThemeFile {0} could not be found in the {1} or default theme directory",ThemeMasterFile,ThemeName));
}
base.OnInit (e);
}
第一步:加载homemaster.ascx
其中master.ascx是默认加载的
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(DefaultMasterExists)
this.MasterPageFile = DefaultThemePath;
else
throw new Exception(string.Format("The MasterThemeFile {0} could not be found in the {1} or default theme directory",ThemeMasterFile,ThemeName));
}
base.OnInit (e);
}
default.aspx的CS:MPContent会覆盖homeMaster.ascx中的同名mpcontent
会替换同名的region
很像类的继承:master是基类*master继承自Master
很像类的继承:master是基类*master继承自Master
主要的Content:
lcr:最左边,
rcr最右边
bcr中间
headregion最上边

浙公网安备 33010602011771号