Fork me on GitHub

UrlRewritePattern property

Gets or sets the url rewrite pattern for paging urls generation when in url paging mode.

C# Syntax:

public string UrlRewritePattern {get; set;}

Default value:

null

Example:

The following example demonstrates how to set UrlRewritePattern property:
    <webdiyer:aspnetpager id="AspNetPager1" runat="server" horizontalalign="Center" width="100%"
UrlPaging="true" EnableUrlRewriting="true" UrlRewritePattern="./listpage_{0}.aspx" 
OnPageChanged="AspNetPager1_PageChanged"></webdiyer:aspnetpager>