CollectionPager Problem With UpdatePanel

前端 未结 3 1396
慢半拍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

提交回复
热议问题