0

Is there a way of changing the pagesize of a repeater control depending on for example, the number of items belonging to a specific category?

I have written a count sql statement to count the number of items in a category and then have set that to be the pagesize but it doesn't seem to work properly.

aQuery = "Select COUNT(Product.ProductID) From Product INNER JOIN Category WHERE Product.CategoryID = Category.CategoryID GROUP BY Category.CategoryID

this should give me a different value each time. But when I assign this value to the pagedData2.PageSize variable it doesn't change the number of items displayed on each page.

Is there a way of getting the number displayed on each page to change?

4

0 回答 0