dropdownlist用法
ddlAdmin.SelectedValue 选择项的值
string authority = this.DropDownList1.SelectedValue.ToString();选择项的值
string a_desc = this.DropDownList1.SelectedItem.ToString();选择项的文字
dropdownlist1.SelectedValue跟
dropdownlist1.SelectedItem.Value一样
估计就是楼上说的那样的,你要考虑两个,一个是页面回传的问题就是加!ispostBack,还有就是在加载事件里调用了,但是你重新选中了DropDownList1的项后没有确定它的值,当然每次就是第一项的值你开启DropDownList1的autopostback属性才行,在它的选择事件里加代码就好了
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。