日期:2014-05-17  浏览次数:20419 次

DropDownList下绑定ListView的问题,最好是无刷新的!
页面上布局是一个DropDownList
里面加载是数据表中的类别

下面放一个ListView根据DropDownList的选择不同类别,来刷新List中的数据

请教怎么做到?

最好是无刷新的,麻烦最好有具体代码!


------解决方案--------------------
设置DropDownList AutoPostBack="true"
在其SelectedIndexChanged事件中获取数据绑定ListView
页面放SciptManager 和 UpdatePanel
------解决方案--------------------
UpdatePanel
里面放俩控件

Dropdownlist的SelectedIndexChanged 来帮ListView