close
選單已連接access為例
<asp:DropDownList ID="DL_identity_gp" runat="server" DataSourceID="AccessDataSource1" DataTextField="identity" DataValueField="identity" AppendDataBoundItems="True">
<asp:ListItem Value="請選擇">請選擇</asp:ListItem> <--可以在這邊增加資料庫以外的項目
</asp:DropDownList>
屬性欄位上 AppendDataBoundItems 預設為false 改為true
即可完成~
全站熱搜