真正的原因是数据源的问题. 楼主的数据源是否来自dataset而来的datatable or dataview..
其实SelectedIndexChanged事件触发了(不是postback了吗?),
当返回时,你到page_load中,在实时窗口中?dropdownlist1.selectindex看看dropdownlist1.selectindex值,是不是总是0??所以原因在于返回到服务端后dropdownlist1.selectindex 强制为0了,故而
SelectedIndexChanged触发但不执行.....深层原因尚在分析中.....
其实SelectedIndexChanged事件触发了(不是postback了吗?),
当返回时,你到page_load中,在实时窗口中?dropdownlist1.selectindex看看dropdownlist1.selectindex值,是不是总是0??所以原因在于返回到服务端后dropdownlist1.selectindex 强制为0了,故而
SelectedIndexChanged触发但不执行.....深层原因尚在分析中.....
1.你的绑定没有放到
if !ispostback
{
}
中
2.你的数据源有问题,dropdownlist1.DataValueField 值是一样..
若还有其它问题,请各位贴出来...