??asp.net 控件使用一DropDownListDropDownList 类表示允许用户从下拉列表中选择一项的控件命名空间:System.Web.UI.WebControls程序集:System.Web(在 system.web.dll 中)DropDownList控件是一个相对比较简单的数据绑定控件它在客户端被解释成 <select> <select>这样标记也就是只能有一
基础数据绑定:用ListItem直接枚举出来适用于不需要修改的类型列表 <asp:DropDownList ID=DropDownList1 runat=server><asp:ListItem Value=阳光明媚1>阳光明媚1<asp:ListItem><asp:ListItem Value=阳光明媚2>阳光明媚2<asp:ListItem><asp:ListItem Value=阳光明