I’ve bound my repeater to a PagedDataSource and I want to get the PagedCount from the ItemDataBound event. I’ve tried a few things and it’s not working. Does anyone know how to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s probably been resolved, but here goes.
You want to use this value when binding the footer element for paging, right?
You can access the datasource on databound.
The DataSource will be null, though, after all the items have been bound.
When binding the buttons or links, you can set the page numbers in
button.CommandArgumentand setbutton.CommandName = "next", for example.Then ofcourse add the
OnItemCommandstuff.