Dropdownlist having Select as First Value in vb.net RRS feed

  • Question

  • User-1578974752 posted

    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

    Monday, March 11, 2019 10:23 AM


  • User-943250815 posted

    On dropdownList control set "AppendDataBoundItems", then add a ListItem

    <asp:DropDownList ID="myDropDown" runat="server" AppendDataBoundItems="True" DataTextField="description" DataValueField="code">

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 11, 2019 11:55 AM