Hi All,
I am trying to bind data from SQL Server 2005 database to a DropDownList.
But for some reason, instead of displaying the data, the DropDownList displays "System.Data.Common.DataRecordInternal".
Here is the code that I use. I tried the same code to bind the data to GridView and it worked.
Protected
mySqlString.Append(
dropdown_Make.DataSource = DataProvider.Instance().ExecuteSQL(mySqlString.ToString())
dropdown_Make.DataBind()
Sub btn_Load_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_Load.ClickDim mySqlString As New StringBuilder()"SELECT testColumn FROM testTable")End Sub
Screenshot is also available:
http://img233.imageshack.us/my.php?image=erroryz6.jpg
Thanks for the help.