在PageLoad中选中列表第二项时,如果DropDownList是采用的数据源绑定模式时,会运行出错;DropDownList采用编辑项模式会避免此错误
DropDownList1.Items[1].Selected=true;
在PageLoad中选中列表第二项时,如果DropDownList是采用的数据源绑定模式时,会运行出错;DropDownList采用编辑项模式会避免此错误
DropDownList1.Items[1].Selected=true;
转载于:https://www.cnblogs.com/kiyu/p/5113468.html