Hello,
I am attempting to load an SQLReader using the microsoft's data application blocks sqlhelper.executereader method.
I am not getting an error in my code at run time, but am not getting data to load, either.
Can anyone spot my error?
Try
Dim reader As SqlDataReader = SqlHelper.ExecuteReader(cnString, "getProductsByCategory", 16)
drpdwnlist2.DataSource() = reader
drpdwnlist2.DataTextField = "ProductName"
drpdwnlist2.DataBind()
'Return reader
Catch ex As Exception
Response.Write(ex.Message)
End Try