读书人

DropDownList上绑定ListView的有关问题

发布时间: 2012-09-16 17:33:16 作者: rapoo

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

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

请教怎么做到?

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


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

Dropdownlist的SelectedIndexChanged 来帮ListView

读书人网 >asp.net

热点推荐