使用带有更新面板的listview停止从复选框选定事件重新加载

问题描述:

In page_load, i fill listview from datatable

In datapager event, i fill listview from datatable (for navigation)   DataPager1_PreRender()

<asp:DataPager runat="server" PageSize="25"   OnPreRender="DataPager1_PreRender" PagedControlID="ProductListList"  >

then when checkbox is clicked  ,i call

protected void RoomAmenty_Selected(object sender, EventArgs e)
{}

from

<asp:CheckBoxList ID="chkAmenties" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RoomAmenty_Selected">

and filter datatable by checkbox value and fill listview again from filtered datatable

so on page,i only want listview to reload, and page position ,should be same

其实你的问题也有答案。请将所有控件放在更新面板中。它完成了你的数据绑定功能性能会自动增加,用户也无法找到页面加载。在这个答案中,你的问题还不够。使用Ajax浏览绑定数据。
Actually your question has answer also. Please put all controls inside update panel. It's done your data bind functionality performance is automatically will be increases and also users can't be able to find page load. In this answer not enough for your question. Go through bind data using Ajax.