Dropdownlist read its values from database and show them. I want when page loaded dropdownlist showing nothing (i.e selectedindex = -1) and user select values. any idea?
Dropdownlist read its values from database and show them. I want when page loaded
Share
You can add an empty data listitem from your backend or directly from the drop down list:
From the db side:
Or directly in as a list item
<asp:ListItem Selected="True" Text="Select One" Value="0" AppendDataBoundItems="true" />