I am fetching info from database and binding it with dropdownbox but after running the code on webserver it display as in
system.data.common.datarecordinternal in the dropdownbox
This is my code
cmd = New SqlCommand("select rows from rows_perpage ORDER BY ABS(rows)", conn)
If conn.State = ConnectionState.Closed Then
conn.Open()
End If
dr = cmd.ExecuteReader
If dr.HasRows Then
drp_rows.DataSource = dr
drp_rows.DataBind()
End If
drp_rows.Items.Insert(0, New ListItem("---Select RPP---", "0"))
If conn.State = ConnectionState.Open Then
conn.Close()
End If
...
Go to the complete details ...