/// 获取或设置应用于提交按钮的CSS样式。 /// </summary> [Browsable(true), Category("文本框及提交按钮"), DefaultValue(null), Description("应用于提交按钮的CSS样式")] public string SubmitButtonStyle { get { return (string)ViewState["SubmitButtonStyle"]; } set { ViewState["SubmitButtonStyle"]=value; } } /// <summary> /// 获取或设置自动显示页索引输入文本框的最低起始页数。 /// </summary> /// <remarks> /// 当 <see cref="ShowInputBox"/> 设为Auto(默认)并且要分页的数据的总页数达到该值时会自动显示页索引输入文本框,默认值为30。该选项当 <see cref="ShowInputBox"/> 设为Never或Always时没有任何作用。 /// </remarks> [Browsable(true), Description("指定当ShowInputBox设为ShowInputBox.Auto时,当总页数达到多少时才显示页索引输入文本框"), Category("文本框及提交按钮"), DefaultValue(30)] public int ShowBoxThreshold { get { object obj=ViewState["ShowBoxThreshold"]; return (obj==null)?30:(int)obj; } set{ViewState["ShowBoxThreshold"]=value;} }
#endregion
#region CustomInfoSection
/// <summary> /// 获取或设置显示用户自定义信息区的方式。 /// </summary> /// <remarks> /// 该属性值设为Left或Right时会在分页导航元素左边或右边划出一个专门的区域来显示有关用户自定义信息,设为Never时不显示。 /// </remarks> [Browsable(true), Description("显示当前页和总页数信息,默认值为不显示,值为ShowCustomInfoSection.Left时将显示在页索引前,为ShowCustomInfoSection.Right时将显示在页索引后"), DefaultValue(ShowCustomInfoSection.Never), Category("自定义信息区")] public ShowCustomInfoSection ShowCustomInfoSection { get { object obj=ViewState["ShowCustomInfoSection"]; return (obj==null)?ShowCustomInfoSection.Never:(ShowCustomInfoSection)obj; } set{ViewState["ShowCustomInfoSection"]=value;} }
/// <summary> /// 获取或设置用户自定义信息区文本的对齐方式。 /// </summary> [Browsable(true), Category("自定义信息区"), DefaultValue(HorizontalAlign.Left), Description("用户自定义信息区文本的对齐方式")] public HorizontalAlign CustomInfoTextAlign { get { object obj=ViewState["CustomInfoTextAlign"]; return (obj==null)?HorizontalAlign.Left:(HorizontalAlign)obj; } set { ViewState["CustomInfoTextAlign"]=value; } }
/// <summary> /// 获取或设置用户自定义信息区的宽度。 /// </summary> [Browsable(true), Category("自定义信息区"), DefaultValue(typeof(Unit),"40%"), Description("用户自定义信息区的宽度")] public Unit CustomInfoSectionWidth { get { object obj=ViewState["CustomInfoSectionWidth"]; return (obj==null)?Unit.Percentage(40):(Unit)obj; } set { ViewState["CustomInfoSectionWidth"]=value; }
上一篇:SQL Server加密与SQL注入
下一篇:ASP无法更新ACCESS数据库解决方法
|