Dim cnn As New SqlConnection(strConnString)
Dim cmd As SqlCommand = New SqlCommand("SELECT * FROM Master_Divisions", cnn)
'cmd.CommandType = CommandType.Text
Dim reader As SqlDataReader
Try
cnn.Open()
reader = cmd.ExecuteReader(CommandBehavior.CloseConnection)
drpDivision.Items.Add("")
While reader.Read
drpDivision.Items.Add(reader.Item("Division")).ToString()
End While
|