Copy codeThe Code is as follows:
<AspNet: AspNetPager ID = "AspPages" runat = "server" CustomInfoHTML = "Page % CurrentPageIndex %/% PageCount %, % PageSize % per page, Total % RecordCount %"
FirstPageText = "Homepage" LastPageText = "last page" NextPageText = "next page" AlwaysShow = "true" CssClass = "PP"
CurrentPageButtonClass = "cpb" PageIndexBoxType = "DropDownList" PrevPageText = "Previous Page"
ShowCustomInfoSection = "Left" ShowPageIndexBox = "Never" SubmitButtonText = "Go"
TextAfterPageIndexBox = "page" PageSize = "10" TextBeforePageIndexBox = "go to" Height = "25px"
NumericButtonCount = "4" Width = "98%" CenterCurrentPageButton = "True" CustomInfoTextAlign = "Left"
HorizontalAlign = "Right" OnPageChanged = "AspPages_PageChanged"
UrlRewritePattern = "/Knowledge/Tag/% TagID %/% Category %/pv {0}" UrlPaging = "True" EnableUrlRewriting = "True">
</AspNet: AspNetPager>
Protected void AspPages_PageChanged (object sender, EventArgs e)
{
String TagID = GetRequest. GetString ("TagID ");
AspPages. UrlRewritePattern = string. IsNullOrEmpty (TagID )? "/Knowledge/Tag/% TagID %/% Category %/pv1": "/Knowledge/Tag/% TagID %/% Category %/pv {0 }";
BindRptChateau (TagID );
}
<Rewrite url = "^/Knowledge/Tag/(\ d +)/pv (\ d +) $" to = "~ /Search/SearchKnowledgeTag. aspx? Keywords = $1 & TagID = $1 & Category = $2 & page = $3 "processing =" stop "> </rewrite>