Last post Mar 11, 2019 11:55 AM by jzero
Member
185 Points
401 Posts
Mar 11, 2019 10:23 AM|shsu|LINK
I have a dropdownlist in vb.net. The values are retrieving from the database table(For eg country name, and it starts form A).it is shwoing but I need to show first value as Select. How to make it possible. Thanks
Participant
1061 Points
666 Posts
Mar 11, 2019 11:55 AM|jzero|LINK
On dropdownList control set "AppendDataBoundItems", then add a ListItem
<asp:DropDownList ID="myDropDown" runat="server" AppendDataBoundItems="True" DataTextField="description" DataValueField="code"> <asp:ListItem>Select/asp:ListItem> </asp:DropDownList>
Member
185 Points
401 Posts
Dropdownlist having Select as First Value in vb.net
Mar 11, 2019 10:23 AM|shsu|LINK
I have a dropdownlist in vb.net. The values are retrieving from the database table(For eg country name, and it starts form A).it is shwoing but I need to show first value as Select. How to make it possible. Thanks
Participant
1061 Points
666 Posts
Re: Dropdownlist having Select as First Value in vb.net
Mar 11, 2019 11:55 AM|jzero|LINK
On dropdownList control set "AppendDataBoundItems", then add a ListItem