日期:2014-05-17 浏览次数:20515 次
<asp:DropDownList ID="AssesTypeID_Select" runat="server" DataSourceID="SqlDataSource1" DataTextField="AssesTypeDesc" DataValueField="AssesTypeID"> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SRMDB2ConnectionString %>" SelectCommand="SELECT * FROM [KPI_AssesType]"></asp:SqlDataSource>
<asp:DropDownList ID="AssesTypeID_Select" runat="server" DataSourceID="SqlDataSource1" DataTextField="AssesTypeDesc" DataValueField="AssesTypeID"> [color=#FF0000]<asp:ListItem Text="请选择" Selected="True"></asp:ListItem>[/color] </asp:DropDownList>
------解决方案--------------------
这行是这个 本来想加个颜色的 代码里框里不能加颜色
<asp:ListItem Text="请选择" Selected="True"></asp:ListItem>
------解决方案--------------------