Click here to Skip to main content
15,918,596 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I am using pagination. I want to display page number in url when user go to the next page using pagination. The page number selected by the user from numeric pagination those page number will be displayed in url as offset.

Please any one help me.
Thanks in advance

i am using pagercontrol for pagination and bind data like this:
PagerControl1.BindDataWithPaging(dlPaginationSample, dv.Table);
i want to display selected page number by the user in url
Posted

1 solution

Two solutions:

First Solution (Recommended) - URL ReWrite: http://msdn.microsoft.com/en-us/library/ms972974.aspx[^]

Second Solution (Lame... but works)
C#
Response.Redirect("SameExactPage.aspx?pagenumber=" + pageNumberVariable.ToString());
 
Share this answer
 

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