jgd1234567
Programmer
Hi, i'm trying to use the DataPager control and i have two problems:
1. It uses the the physical url and not actual url, ie default.aspx instead of default.htm (i use isapi rewrite to rewrite the url)
2. I can't see how i can customize the way the paging works. I can see there is a QueryStringField property but this isn't perfect. I would like to be able to set a property ie PagerUrl="/{0}/" where {0} is replaced with the page number.
I would imagine my solution to the second problem would solve the first but i can not see how to implement this. I tried creating my own server control inheriting from the DataPager control and have added my PagerUrl property but now i'm stuck. Which method should i override? I looked at CreatePagerFields but what next. I have some minor experience creating server controls but i am way out of my depth on this one and was hoping someone could help.
Appreciate the help. Thanks
1. It uses the the physical url and not actual url, ie default.aspx instead of default.htm (i use isapi rewrite to rewrite the url)
2. I can't see how i can customize the way the paging works. I can see there is a QueryStringField property but this isn't perfect. I would like to be able to set a property ie PagerUrl="/{0}/" where {0} is replaced with the page number.
I would imagine my solution to the second problem would solve the first but i can not see how to implement this. I tried creating my own server control inheriting from the DataPager control and have added my PagerUrl property but now i'm stuck. Which method should i override? I looked at CreatePagerFields but what next. I have some minor experience creating server controls but i am way out of my depth on this one and was hoping someone could help.
Appreciate the help. Thanks