【发布时间】:2014-12-01 21:58:54
【问题描述】:
我有下面的代码块,如何将“选择一个”显示为顶部选定的值?
<table>
<tr>
<td>
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2" DataTextField="StudentName" DataValueField="StudentName"></asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ddl_connStudentProfile %>" SelectCommand="SELECT [StudentName] FROM [StudentProfile]"></asp:SqlDataSource>
</td>
</tr>
</table>
【问题讨论】:
-
你有一个叫“select one”的学生,还是需要把它作为一个项目添加到列表顶部?
标签: asp.net vb.net drop-down-menu