- 基本功能
- 分页按钮属性效果
- 使用自定义信息区
- Repeater分页
- DataList分页
- Url分页
- Url重写
- Url逆向分页
- n层结构应用
- 使用Xml文件数据源
- 图片浏览示例
- AccessDataSource分页
- SqlDataSource分页
- ObjectDataSource分页
- 自定义数据呈现逻辑
- 使用图片按钮
- 查询结果分页
- 查询结果Url分页
- 克隆属性及事件
- 页索引输入/选择框
- 自定义导航按钮
- 在用户控件中实现分页
- UpdatePanel支持
- 设置当前页按钮位置
- 使用Table布局
- 自定义提交按钮图片
- 从Url中获取每页显示记录数
- 应用CSS样式
- 使用GoToPage方法
- 分页导航元素布局
- 类:
- 属性:
- AlwaysShow
- AlwaysShowFirstLastPageNumber
- BackImageUrl
- ButtonImageAlign
- ButtonImageExtension
- ButtonImageNameExtension
- CloneFrom
- CpiButtonImageNameExtension
- CssClass
- CurrentPageButtonClass
- CurrentPageButtonPosition
- CurrentPageButtonStyle
- CurrentPageButtonTextFormatString
- CurrentPageIndex
- CustomInfoClass
- CustomInfoHTML
- CustomInfoSectionWidth
- CustomInfoStyle
- CustomInfoTextAlign
- DisabledButtonImageNameExtension
- EnableTheming
- EnableUrlRewriting
- EndRecordIndex
- FirstPageText
- FirstPageUrlRewritePattern
- HorizontalAlign
- ImagePath
- InvalidPageIndexErrorMessage
- LastPageText
- LayoutType
- MoreButtonType
- NavigationButtonsPosition
- NavigationButtonType
- NavigationToolTipTextFormatString
- NextPageText
- NumericButtonCount
- NumericButtonTextFormatString
- NumericButtonType
- PageCount
- PageIndexBoxClass
- PageIndexBoxStyle
- PageIndexBoxType
- PageIndexOutOfRangeErrorMessage
- PageSize
- PagesRemain
- PagingButtonLayoutType
- PagingButtonSpacing
- PagingButtonType
- PrevPageText
- RecordCount
- RecordsRemain
- ReverseUrlPageIndex
- ShowBoxThreshold
- ShowCustomInfoSection
- ShowDisabledButtons
- ShowFirstLast
- ShowMoreButtons
- ShowNavigationToolTip
- ShowPageIndex
- ShowPageIndexBox
- ShowPrevNext
- SkinID
- StartRecordIndex
- SubmitButtonClass
- SubmitButtonImageUrl
- SubmitButtonStyle
- SubmitButtonText
- TextAfterPageIndexBox
- TextBeforePageIndexBox
- UrlPageIndexName
- UrlPageSizeName
- UrlPaging
- UrlPagingTarget
- UrlRewritePattern
- 方法:
- 事件:
- 枚举:
- 委托:
AspNetPager Ô´´úÂë ¡ª postback.cs
//AspNetPager分页控件源代码:
//版权所有:陕西省延安市吴起县博杨计算机有限公司 杨涛(Webdiyer)
//此源代码仅供学习参考,不得用于任何商业用途;
//您可以修改并重新编译该控件,但源代码中的版权信息必须原样保留!
//有关控件升级及新控件发布信息,请留意 www.webdiyer.com 。
using System.Collections.Specialized;
namespace Wuqi.Webdiyer
{
public partial class AspNetPager
{
#region IPostBackEventHandler Implementation
/// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="RaisePostBackEvent"]/*'/>
public void RaisePostBackEvent(string args)
{
int pageIndex = CurrentPageIndex;
try
{
if (string.IsNullOrEmpty(args))
args = inputPageIndex;
pageIndex = int.Parse(args);
}
catch { }
PageChangingEventArgs pcArgs = new PageChangingEventArgs(pageIndex);
if (cloneFrom != null)
cloneFrom.OnPageChanging(pcArgs);
else
OnPageChanging(pcArgs);
}
#endregion
#region IPostBackDataHandler Implementation
/// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="LoadPostData"]/*'/>
public virtual bool LoadPostData(string pkey, NameValueCollection pcol)
{
string str = pcol[UniqueID + "_input"];
if (str != null && str.Trim().Length > 0)
{
try
{
int pindex = int.Parse(str);
if (pindex > 0 && pindex <= PageCount)
{
inputPageIndex = str;
Page.RegisterRequiresRaiseEvent(this);
}
}
catch { }
}
return false;
}
/// <include file='AspNetPagerDocs.xml' path='AspNetPagerDoc/Method[@name="RaisePostDataChangedEvent"]/*'/>
public virtual void RaisePostDataChangedEvent() { }
#endregion
}
}