📄 aspnetpager.cs
字号:
relativeUrl = base.ResolveUrl(relativeUrl);
}
return relativeUrl;
}
set
{
string str = value.Trim().Replace(@"\", "/");
this.ViewState["ImagePath"] = str.EndsWith("/") ? str : (str + "/");
}
}
[Browsable(true), Category("文本框及提交按钮"), DefaultValue((string) null), Description("应用于页索引输入文本框的CSS类名")]
public string InputBoxClass
{
get
{
return (string) this.ViewState["InputBoxClass"];
}
set
{
if (value.Trim().Length > 0)
{
this.ViewState["InputBoxClass"] = value;
}
}
}
[DefaultValue((string) null), Description("应用于页索引输入文本框的CSS样式文本"), Category("文本框及提交按钮"), Browsable(true)]
public string InputBoxStyle
{
get
{
return (string) this.ViewState["InputBoxStyle"];
}
set
{
if (value.Trim().Length > 0)
{
this.ViewState["InputBoxStyle"] = value;
}
}
}
[DefaultValue("页索引无效!"), Category("Data"), Description("当用户输入无效的页索引(负值或非数字)时在客户端显示的错误信息。"), Browsable(true)]
public string InvalidPageIndexErrorString
{
get
{
object obj2 = this.ViewState["InvalidPageIndexErrorString"];
if (obj2 != null)
{
return (string) obj2;
}
return "页索引无效!";
}
set
{
this.ViewState["InvalidPageIndexErrorString"] = value;
}
}
[DefaultValue("<font face=\"webdings\">:</font>尾页"), Description("最后一页按钮上显示的文本"), Category("导航按钮"), Browsable(true)]
public string LastPageText
{
get
{
object obj2 = this.ViewState["LastPageText"];
if (obj2 != null)
{
return (string) obj2;
}
return "尾页";
}
set
{
this.ViewState["LastPageText"] = value;
}
}
[Description("“更多页”(...)按钮的类型"), Browsable(true), Category("导航按钮"), DefaultValue(0)]
public PowerEasy.Controls.PagingButtonType MoreButtonType
{
get
{
object obj2 = this.ViewState["MoreButtonType"];
if (obj2 != null)
{
return (PowerEasy.Controls.PagingButtonType) obj2;
}
return this.PagingButtonType;
}
set
{
this.ViewState["MoreButtonType"] = value;
}
}
[Browsable(true), Description("第一页、上一页、下一页和最后一页按钮的类型"), Category("导航按钮"), DefaultValue(0)]
public PowerEasy.Controls.PagingButtonType NavigationButtonType
{
get
{
object obj2 = this.ViewState["NavigationButtonType"];
if (obj2 != null)
{
return (PowerEasy.Controls.PagingButtonType) obj2;
}
return this.PagingButtonType;
}
set
{
this.ViewState["NavigationButtonType"] = value;
}
}
[Description("页导航按钮工具提示文本的格式"), Browsable(true), Category("导航按钮"), DefaultValue("转到第{0}页")]
public string NavigationToolTipTextFormatString
{
get
{
object obj2 = this.ViewState["NavigationToolTipTextFormatString"];
if (obj2 != null)
{
return (string) obj2;
}
return "转到第{0}页";
}
set
{
string str = value;
if ((str.Trim().Length < 1) && (str.IndexOf("{0}") < 0))
{
str = "{0}";
}
this.ViewState["NavigationToolTipTextFormatString"] = str;
}
}
[DefaultValue("<font face=\"webdings\">4</font>下一页"), Category("导航按钮"), Browsable(true), Description("下一页按钮上显示的文本")]
public string NextPageText
{
get
{
object obj2 = this.ViewState["NextPageText"];
if (obj2 != null)
{
return (string) obj2;
}
return "下一页";
}
set
{
this.ViewState["NextPageText"] = value;
}
}
[Category("导航按钮"), DefaultValue(10), Description("要显示的页索引数值按钮的数目"), Browsable(true)]
public int NumericButtonCount
{
get
{
object obj2 = this.ViewState["NumericButtonCount"];
if (obj2 != null)
{
return (int) obj2;
}
return 10;
}
set
{
this.ViewState["NumericButtonCount"] = value;
}
}
[DefaultValue(""), Description("页索引数值按钮上文字的显示格式"), Browsable(true), Category("导航按钮")]
public string NumericButtonTextFormatString
{
get
{
object obj2 = this.ViewState["NumericButtonTextFormatString"];
if (obj2 != null)
{
return (string) obj2;
}
return string.Empty;
}
set
{
this.ViewState["NumericButtonTextFormatString"] = value;
}
}
[Category("导航按钮"), Description("页导航数值按钮的类型"), Browsable(true), DefaultValue(0)]
public PowerEasy.Controls.PagingButtonType NumericButtonType
{
get
{
object obj2 = this.ViewState["NumericButtonType"];
if (obj2 != null)
{
return (PowerEasy.Controls.PagingButtonType) obj2;
}
return this.PagingButtonType;
}
set
{
this.ViewState["NumericButtonType"] = value;
}
}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), Browsable(false)]
public int PageCount
{
get
{
return (int) Math.Ceiling((double) (((double) this.RecordCount) / ((double) this.PageSize)));
}
}
[DefaultValue("页数超出范围!"), Browsable(true), Category("Data"), Description("当用户输入的页索引超出范围(大于最大页索引或小于最小页索引)时在客户端显示的错误信息。")]
public string PageIndexOutOfRangeErrorString
{
get
{
object obj2 = this.ViewState["PageIndexOutOfRangeErrorString"];
if (obj2 != null)
{
return (string) obj2;
}
return "页数超出范围!";
}
set
{
this.ViewState["PageIndexOutOfRangeErrorString"] = value;
}
}
[Browsable(true), DefaultValue(20), Description("每页显示的记录数"), Category("分页")]
public int PageSize
{
get
{
if ((this.Page != null) && (this.Page.Session != null))
{
string str = this.Page.GetType().Name + "_" + this.UniqueID + "_PageSize";
if (this.Page.Session[str] != null)
{
return (int) this.Page.Session[str];
}
}
object obj2 = this.ViewState["PageSize"];
if (obj2 != null)
{
return (int) obj2;
}
return 10;
}
set
{
if ((this.Page != null) && (this.Page.Session != null))
{
string str = this.Page.GetType().Name + "_" + this.UniqueID + "_PageSize";
if (this.Page.Session != null)
{
this.Page.Session[str] = value;
}
else
{
this.ViewState["PageSize"] = value;
}
}
else
{
this.ViewState["PageSize"] = value;
}
}
}
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public int PagesRemain
{
get
{
return (this.PageCount - this.CurrentPageIndex);
}
}
[Category("导航按钮"), DefaultValue(typeof(Unit), "10px"), Description("分页导航按钮之间的间距"), Browsable(true)]
public Unit PagingButtonSpacing
{
get
{
object obj2 = this.ViewState["PagingButtonSpacing"];
if (obj2 != null)
{
return Unit.Parse(obj2.ToString());
}
return Unit.Pixel(10);
}
set
{
this.ViewState["PagingButtonSpacing"] = value;
}
}
[DefaultValue(0), Category("导航按钮"), Description("分页导航按钮的类型,是使用文字还是图片"), Browsable(true)]
public PowerEasy.Controls.PagingButtonType PagingButtonType
{
get
{
object obj2 = this.ViewState["PagingButtonType"];
if (obj2 != null)
{
return (PowerEasy.Controls.PagingButtonType) obj2;
}
return PowerEasy.Controls.PagingButtonType.Text;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -