custom link format for DataPager's NumericPagerField

  • Thread starter Adam The Generic
  • Start date
A

Adam The Generic

Hi All,

My question is about the DataPager.
I use the QueryStringField property of the DataPager to use queries for
paging,

My DataPager section is :

<asp:DataPager ID="DataPager1" QueryStringField="PageNo" PageSize="2"
PagedControlID="ListView1" runat="server">
<Fields>
<asp:NumericPagerField />
</Fields>
</asp:DataPager>

On runtime, numeric paging system works with links like
http://localhost/ProductList.aspx?PageNo=2, because of QueryStringField
property.

My question is, is it possible to change the format of this links ?
For example , can i rewrite above link to http://localhost/someText/page-2/

I need this, because i use Intelligencia.UrlRewriter library to rewrite the
url of this page and the url format should be /page-([0-9]+)/

Thanks in advance..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top