Click here to Skip to main content
15,908,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I have one page contains few hundreds of data. Am retrieve data from DB and fetch at Repeater Control. My requirement is When am Click at 1 at pagination my url look like www.example.com/aaa. When am click next or any other page number my url changed to www.example.com/aaa/Page-2(page number).

Thanks,
DhineshKumar VelMayil
Posted

1 solution

Use DataPager Controlwith QueryStringField so that Page number can be displayed as part of the Url.

Refer

http://forums.asp.net/t/1190441.aspx[^]

http://www.4guysfromrolla.com/articles/010610-1.aspx[^]
 
Share this answer
 
Comments
Karthik_Mahalingam 7-Feb-14 1:31am    
5
JoCodes 7-Feb-14 1:35am    
Thanks Karthik.
Dhinesh kumar.V 7-Feb-14 1:31am    
Hi JoCodes,

Thanks for your comment.Here am not using DataPager, am using Repeater control.
Thanks,
DhineshKumar VelMayil
JoCodes 7-Feb-14 1:37am    
DataPager is for pagination only. It can be used with Repeater.
JoCodes 7-Feb-14 1:44am    
Check this
http://www.codeproject.com/Articles/45163/Extend-Repeater-to-support-DataPager

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900