private static void InsertDdlFirstItem(DropDownList ddlObject)
{
ListItem firstItem = new ListItem();
firstItem.Value = "";
firstItem.Text = "--请选择--";
firstItem.Selected = true;
ddlObject.Items.Insert(0, firstItem);
}
为DropDownList动态添加第一项
最新推荐文章于 2018-11-05 23:38:30 发布