DropDownList 手动添加的 ListItem项目 怎么不显示?(已经绑定数据源)
以下是源码:
<asp:DropDownList ID="XianMing" runat="server" DataSourceID="XianMingSqlData"
DataTextField="xianMing" DataValueField="xianMing" CssClass="XiaLaKuang">
<asp:ListItem Text="------请选择------" Value="" Selected="True"></asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="XianMingSqlData" runat="server"
ConnectionString="<%$ ConnectionStrings:JianKongConnectionString %>"
SelectCommand="SELECT DISTINCT [xianMing] FROM [XianMing]">
</asp:SqlDataSource>
<asp:DropDownList ID="ddlli" runat="server" AutoPostBack="true" AppendDataBoundItems="true">