A
André Almeida Maldonado
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;Integrated
Security=SSPI")
Dim cmdCommand As SqlCommand = conBanco.CreateCommand()
conBanco.open()
Dim dtrDataReader as SqlDataReader
cmdCommand.CommandText = "SELECT usuanome FROM usuarios"
dtrDataReader = cmdCommand.ExecuteReader()
drpLigaAten.DataSource = dtrDataReader
drpLigaAten.DataBind()
dtrDataReader.Close()
errors but don't populate de DropDownList... See the code:
Dim conBanco = New
SQLConnection("server=(local)\NetSDK;database=Digiexpress;Integrated
Security=SSPI")
Dim cmdCommand As SqlCommand = conBanco.CreateCommand()
conBanco.open()
Dim dtrDataReader as SqlDataReader
cmdCommand.CommandText = "SELECT usuanome FROM usuarios"
dtrDataReader = cmdCommand.ExecuteReader()
drpLigaAten.DataSource = dtrDataReader
drpLigaAten.DataBind()
dtrDataReader.Close()