CollectionPager Problem With UpdatePanel

前端 未结 3 1388
慢半拍i
慢半拍i 2020-12-11 14:45

I have a problem with the collectionpager and repeater. When I load the page, collectionpager is working fine.. But when I click the search button and bind new data, clickin

相关标签:
3条回答
  • 2020-12-11 14:54

    the code is very bad and you should completely review all of it. the issue is every time the page load is executed it initializes again you query to the default one (the one with not filter) you should find a way to store somewhere the last query has been execute when you order/filtering your data. Anyway the are lot of example on the web showing what you are trying to achieve

    the below is just one of them

    http://www.codeproject.com/KB/webforms/ExtendedRepeater.aspx

    0 讨论(0)
  • 2020-12-11 15:00

    You have to bind the CollectionPager again on your search.

    0 讨论(0)
  • 2020-12-11 15:10

    try this EnableViewState="false"

    0 讨论(0)
提交回复
热议问题