我在做一个两级的新闻系统,我想实现修改文章的时候连文章所属的大小栏目都可以改动,我用两个dropdownlist来显示大小两级栏目,我想修改文章的时候两个dropdownlist显示文章原来所属的栏目,两个dopdownlist的值可以选。现在第一个dropdownlist控件
        this.DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue(bigclass_id));
        this.DropDownList1.SelectedValue = bigclass_id; 
通过这个代码可以显示保存的栏目值,
而第二个dropdownlist控件
this.DropDownList2.SelectedIndex = DropDownList2.Items.IndexOf(DropDownList2.Items.FindByValue(smallclass_id));
this.DropDownList2.SelectedValue = smallclass_id;
通过这段代码不起作用.
说明,dropdownlist2控件的值是通过dropdownlist1控件的值获取的.如图http://www.smallfamily.cn/temp/aaaa.jpg