



























1、 DropDownList 默认展示从数据库查询的值
DropDownList1.Items.FindByValue(model.ClassConfig.ToString()---要展示的值).Selected = true;
2、RadioButtonList1 对查询出来的数据默认展示
foreach (ListItem item in this.RadioButtonList1.Items)
{
if (item.Value == model.IsChildorg.ToString())//modeluser.userpower.tostring()为你要赋值的值
{
item.Selected = true;
break;
}
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。