JohnnyzazA
New Member
I created a dropdown list box that is filled from a SQL Server 2000 database. I used the dataAdapter dataConnection and dataSet to fill the Dropdown. The only thing is the first value is shown on the dropdow when I view the code on the browser, does anyone know how to make the dropdown text blank until the user select the dropdown to see the selection. thankyou for your time.In your subroutine, after you call the databind method, do this:<BR>dropListName.Items.Insert(0, New ListItem( "Select", -1))<BR><BR>To check that something has been selected you could do something like this:<BR>mySelection = dropListName.SelectedItem.Value<BR>If mySelection <> -1 Then<BR>'whatever<BR>End If