关于asp.net中的DropDownList控件的用法 DropDownList控件我想实现html表单中的<select name="aaa"><option value="a">第一个选项</option></select>DropDownList控件只能设选项,不能为每个选项设一个值吗?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以 <asp:DropDownList ID="DropDownList1" runat="server" Width="253px"> <asp:ListItem Value="1">a1</asp:ListItem> <asp:ListItem Value="2">a2</asp:ListItem> <asp:ListItem Value="3">a3</asp:ListItem> </asp:DropDownList></div> 可以 <asp:DropDownList ID="DropDownList1" runat="server" Width="253px"> <asp:ListItem Value="1">a1</asp:ListItem> <asp:ListItem Value="2">a2</asp:ListItem> <asp:ListItem Value="3">a3</asp:ListItem> </asp:DropDownList></div> <asp:DropDownList ID="DropDownList1" runat="server"> <asp:ListItem Value="1"> 一 </asp:ListItem> <asp:ListItem Value="2"> 二 </asp:ListItem> <asp:ListItem Value="3"> 三 </asp:ListItem> <asp:ListItem Value="4"> 四 </asp:ListItem> </asp:DropDownList>不用写死的 到后台 动态添加 this.DropDownList1.Items.Add() ModalPopupExtender 上创建 Button 控件 问题 asp.net中内存表如何进行判断某一条数据是否存在?并更新该条数据? Server.MapPath问题 关于DataGrid模板列的问题 希望给解释一下,一个标准的调用存储过程 一个很菜的问题,学了这么久的.NET居然连这个都不知道 样式表控制CheckBox 下拉框等 Asp.net Mvc3项目框架搭建讨论 想在页面上做个滑动条 运行代码出错 ! 未能加载类型“/bin/Article.Default”。 asp.net access数据库insert插入问题!! 用iframe设置页面框架,并且可隐藏左栏
<asp:DropDownList ID="DropDownList1" runat="server" Width="253px">
<asp:ListItem Value="1">a1</asp:ListItem>
<asp:ListItem Value="2">a2</asp:ListItem>
<asp:ListItem Value="3">a3</asp:ListItem>
</asp:DropDownList></div>
<asp:DropDownList ID="DropDownList1" runat="server" Width="253px">
<asp:ListItem Value="1">a1</asp:ListItem>
<asp:ListItem Value="2">a2</asp:ListItem>
<asp:ListItem Value="3">a3</asp:ListItem>
</asp:DropDownList></div>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="1">
一
</asp:ListItem>
<asp:ListItem Value="2">
二
</asp:ListItem>
<asp:ListItem Value="3">
三
</asp:ListItem>
<asp:ListItem Value="4">
四
</asp:ListItem>
</asp:DropDownList>
不用写死的
到后台
动态添加 this.DropDownList1.Items.Add()