Author: LWCARAB | Posted on: 4/9/2009 4:17:47 PM | Views : 432

 Hello,


I've been trying all night to populate and asp dropdownlist from a
datareader reading a mysql database, the data reader itself work fine
but I can't get it to poulate the DropDownList, here's my code:




Code:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim connStr As String = "Server=Private; Database=Private; Uid=Private; Pwd=Private"
Dim conn As New MySqlConnection(connStr)
Try
conn.Open()
Catch ex As Exception
End Try
Dim cmd As New MySqlCommand("SELECT OvenName FROM Ovens", conn)
Dim dr As MySqlDataReader
dr = c ...

Go to the complete details ...