对于我们一个标签绑定使用数据绑定到asp.net中的dropdownlist?
<asp:Label ID="Label2" runat="server" Text='<%#Eval("address") %>'></asp:Label>
如何将数据绑定到下拉列表这样的数据?
asp:DropDownList ID="droplist" runat="server" >
<asp:ListItem Text="admin"></asp:ListItem>
<asp:ListItem Text="manager"></asp:ListItem>
</asp:DropDownList>
This works,t.y.注意到IntelliSense没有选择这个。这是窃听我:( – Willmore