Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Howzit , i`m having a tough time populating a dropdown box with an sql dataset or dataview, seems like it cant do a string conversion.
Dim objdataset2 As DataSet
Dim objDataAdapter2 As SqlDataAdapterobjDataAdapter2 = New SqlDataAdapter( _
"select distinct make from tblcar", objconnection)objdataset2 = New DataSet
objDataAdapter2.Fill(objdataset2, "tblcar")Dim objDataView2 As DataView = _
objdataset2.Tables("tblcar").DefaultView
DropDownList1.DataSource = (objdataset2)
DropDownList1.DataBind()
objDataView2 = Nothing
objdataset2 = Nothing
objDataAdapter2 = Nothingall it does is fill the field with "system.data." dont know why it does this, please help.
Thanks.
Anthony.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |