当前位置: 代码迷 >> ASP.NET >> 选择dropdownlist的选择事件后,第2个dropdownlist如何就无效?
  详细解决方案

选择dropdownlist的选择事件后,第2个dropdownlist如何就无效?

热度:2529   发布时间:2013-02-25 00:00:00.0
选择dropdownlist的选择事件后,第2个dropdownlist怎么就无效????
我有两个dropdownlist控件??第一个选择后会根据内容初始绑定下个dropdownlist,但是第一个选择了,也绑定了下个,但是ispostback后第2个dropdownlist怎么就无效了呢?
谢谢!!!!!!

------解决方案--------------------------------------------------------
不要postback
------解决方案--------------------------------------------------------
页面加栽
if(!IsPostBack)
{}
DropDownList1的AutoPostBack=true
------解决方案--------------------------------------------------------
if(!IsPostBack) 
{
绑定DDL

第一个DropDownList 的OnSelectedIndexChanged怎么写的呀

  相关解决方案