IE I have a class "project". The method "LoadAll" loads "project" with thirty projects
Project object has a idProject parameter and a projectName
project objProj = new project();
objProj.LoadAll();
DropDownList ddTemp = new DropDownList();
ddTemp.DataSource = objProj;
ddTemp.DataValueField = "idProject";
ddTemp.DataTextField = "projectName";
ddTemp.DataBind();
error is "It must be either an IListSource, IEnumerable, or IDataSource".
sconardPosted May 9, 2012, 11:15 AM
I thought that the object was array storage but had to load from database directly. The writing was a bit obscure and required a closer look.
Thank you for your assistance.
VulpesPosted May 7, 2012, 2:41 PM