62,243
社区成员




<asp:DropDownList ID="SearchDeptDrop" runat="server">
</asp:DropDownList>
DataTable Depts=getDepts();
foreach (DataRow dr in Depts.Rows)
{
ListItem LI = new ListItem();
LI.Value = dr[0].ToString();
LI.Text = dr[1].ToString();
SearchDeptDrop.Items.Add(LI);//添加选项进DropDowdList
}