How can I bind data with a DropDownList... I use a code that return no
errors but don't populate de DropDownList... See the code:
Dim conBanco = New
SQLConnection(" server=(local)\ NetSDK;database =Digiexpress;In tegrated
Security=SSPI")
Dim cmdCommand As SqlCommand = conBanco.Create Command()
conBanco.open()
Dim dtrDataReader as SqlDataReader
cmdCommand.Comm andText = "SELECT usuanome FROM usuarios"
dtrDataReader = cmdCommand.Exec uteReader()
drpLigaAten.Dat aSource = dtrDataReader
drpLigaAten.Dat aBind()
dtrDataReader.C lose()
errors but don't populate de DropDownList... See the code:
Dim conBanco = New
SQLConnection(" server=(local)\ NetSDK;database =Digiexpress;In tegrated
Security=SSPI")
Dim cmdCommand As SqlCommand = conBanco.Create Command()
conBanco.open()
Dim dtrDataReader as SqlDataReader
cmdCommand.Comm andText = "SELECT usuanome FROM usuarios"
dtrDataReader = cmdCommand.Exec uteReader()
drpLigaAten.Dat aSource = dtrDataReader
drpLigaAten.Dat aBind()
dtrDataReader.C lose()
Comment