Gaia是一个主版頁面规划工具 GAIA V1.0 Beta(MASTERPAGE)下载地址: http://www.cnblogs.com/mack/articles/176872.html 类文件说明: |
Gaia ------------------------------------------------------------------- 母版控件,用于解析母版 GaiaContent -------------------------------------------------------- Gaia的子控件,用于填充母版中的占位符 GaiaContentCollcetion ------------------------------------------- GaiaContent的容器类,用于管理多个GaiaContent GaiaAscxPlaceHolder --------------------------------------------- 只限在母版中使用的占位符控件 GaiaAscxForm ------------------------------------------------------ HtmlForm控件的代替品,用于解绝某些.NET FrameWork版本中多个ASCX子控件ID重复的问题 Panel ----------------------------------------------------------------- 占位符控件,也可以当一个Panel来使用 PanelDesigner Panel的设计时形态 |
类主要属性说明: |
Gaia.AscxFile ------------------------------------------------------- 使用的模版页文件名,类型必须为用户控件 Gaia.IgnoreMatching -------------------------------------------- 是否需要忽略匹配(母版中的占位符(GaiaAscxPlaceHolder)是否都需要有对应的GaiaContent) GaiaControl 模版控件实例 -------------------------------------- GaiaContent.AscxFile 匹配模版页占位符(GaiaAscxPlaceHolder)的用户控件文件名 GaiaContent.ClearPlaceHolderControlContent ----------- 是否需要清空母版页占位符(GaiaAscxPlaceHolder)控件中的默认内容 GaiaContent.PlaceHolderCode -------------------------------- 指定匹配母模版中占位符(GaiaContent.PlaceHolderCode = GaiaAscxPlaceHolder.ID) |
使用介绍(定义一个母版): |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
使用页面一: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
使用页面二 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
GAIA(MASTERPAGE)下载地址: http://www.cnblogs.com/mack/articles/176872.html |
其它一些MASTERPAGE开源程序的下载和介绍,大家用之前可以比较一下: 1.An Extensible Master-Page Framework for ASP.NET 1.1 Using Pattern Oriented Design http://www.codeproject.com/aspnet/Frame_Work_Design.asp 2.Wilson Master Page http://authors.aspalliance.com/PaulWilson/Articles/?id=14 |
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)