Friday, July 16, 2010

Having Querystring for Datapager

Article: http://www.dotnetfunda.com/articles/article122.aspx

Steps:
1. Simply, open any of your pages that uses DataPager (e.g Web/startpage/Tasks.aspx)


2. locate the datapager, and add the following:-
<asp:DataPager ID="dpTop" runat="server" PageSize="10" PagedControlID="lv_myTask" QueryStringField="pageNumber">

3. and that it. if you launch the page,
the URL would be:-
Tasks.aspx

when you click on 'next page' at pager link, the URL will auto change to :-
Tasks.aspx?pageNumber=2

Its FREE (built into datapager), no other custom coding needed. improves the Navi and user experience..

-farid


No comments: