D
djozy
Please,
I am using SqlDatareader in C# and when I want to put int
value ,that is get by datareader, to dropdown list I get
this error:
An invalid data source is being used for idlist. A valid
data source must implement either IListSource or
IEnumerable.
Source Error:
SqlDataReader myReader = myCommand.ExecuteReader();
myReader.Read ();
this.dropdownlist.DataSource =myReader.GetValue(0);
this.dropdownlist.DataBind();
I am using SqlDatareader in C# and when I want to put int
value ,that is get by datareader, to dropdown list I get
this error:
An invalid data source is being used for idlist. A valid
data source must implement either IListSource or
IEnumerable.
Source Error:
SqlDataReader myReader = myCommand.ExecuteReader();
myReader.Read ();
this.dropdownlist.DataSource =myReader.GetValue(0);
this.dropdownlist.DataBind();