使用带有更新面板的listview停止从复选框选定事件重新加载 [英] stop reload from checkbox selected event using listview with update panel or

查看:65
本文介绍了使用带有更新面板的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.


这篇关于使用带有更新面板的listview停止从复选框选定事件重新加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆