0
から私は、メニューasp.netドロップダウンメニューの項目は、SQL
<asp:DropDownList ID="ddlUser" runat="server" CssClass="form-
control" AppendDataBoundItems="True" DataSourceID="SqlDataSource2"
DataTextField="Person" DataValueField="PersonID"
OnSelectedIndexChanged="ddlUser_SelectedIndexChanged" AutoPostBack="True">
<asp:ListItem>Select User</asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="
<%$ ConnectionStrings:IBS_6 %>" SelectCommand="SELECT DISTINCT PersonID, PLName
+ '
' + PFName + ',' + PMoNo AS Person, PFName, PLName, PMoNo, PEmail, PArea,
PCity, PAge, PGender, PType, PStatus, dbTstamp FROM tbl_persons ORDER BY
dbTstamp DESC"></asp:SqlDataSource>
ドロップダウンを持っています。アイテムの価値はどのようになってくるのですか?空白のアイテムを選択できます。
これは役に立ちました。ありがとう。 –