- Simple postback
- Show or hide buttons
- Custom info section
- Repeater paging
- DataList paging
- Url paging
- Url rewriting
- Reversing page index
- N tier application
- XML file as data source
- Photo viewer
- AccessDataSource paging
- SqlDataSource paging
- ObjectDataSource paging
- Customized rendering
- Using image buttons
- Search result paging
- Search result url paging
- Clone AspNetPager
- Using page index box
- Customize navigation buttons
- Paging within user control
- UpdatePanel supporting
- CurrentPageButtonPosition
- Using table layout
- Image submit button
- Get page size from url
- Applying css styles
- Using GoToPage method
- PagingButtonLayoutType
- Classes:
- Properties:
- AlwaysShow property
- AlwaysShowFirstLastPageNumber property
- BackImageUrl property
- ButtonImageAlign property
- ButtonImageExtension property
- ButtonImageNameExtension property
- CloneFrom property
- CpiButtonImageNameExtension property
- CssClass property
- CurrentPageButtonClass property
- CurrentPageButtonPosition property
- CurrentPageButtonStyle property
- CurrentPageButtonTextFormatString property
- CurrentPageIndex property
- CustomInfoClass property
- CustomInfoHTML property
- CustomInfoSectionWidth property
- CustomInfoStyle property
- CustomInfoTextAlign property
- DisabledButtonImageNameExtension property
- EnableTheming property
- EnableUrlRewriting property
- EndRecordIndex property
- FirstPageText property
- FirstPageUrlRewritePattern property
- HorizontalAlign property
- ImagePath property
- InvalidPageIndexErrorMessage property
- LastPageText property
- LayoutType property
- MoreButtonType property
- NavigationButtonsPosition property
- NavigationButtonType property
- NavigationToolTipTextFormatString property
- NextPageText property
- NumericButtonCount property
- NumericButtonTextFormatString property
- NumericButtonType property
- PageCount property
- PageIndexBoxClass property
- PageIndexBoxStyle property
- PageIndexBoxType property
- PageIndexOutOfRangeErrorMessage property
- PageSize property
- PagesRemain property
- PagingButtonLayoutType property
- PagingButtonSpacing property
- PagingButtonType property
- PrevPageText property
- RecordCount property
- RecordsRemain property
- ReverseUrlPageIndex property
- ShowBoxThreshold property
- ShowCustomInfoSection property
- ShowDisabledButtons property
- ShowFirstLast property
- ShowMoreButtons property
- ShowNavigationToolTip property
- ShowPageIndex property
- ShowPageIndexBox property
- ShowPrevNext property
- SkinID property
- StartRecordIndex property
- SubmitButtonClass property
- SubmitButtonImageUrl property
- SubmitButtonStyle property
- SubmitButtonText property
- TextAfterPageIndexBox property
- TextBeforePageIndexBox property
- UrlPageIndexName property
- UrlPageSizeName property
- UrlPaging property
- UrlPagingTarget property
- UrlRewritePattern property
- Methods:
- Events:
- Enums:
- Delegates:
AspNetPager source code — postback.cs
/* AspNetPager source code
This file is part of AspNetPager.
Copyright 2003-2015 Webdiyer(http://en.webdiyer.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
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
}
}