zachvaldez
asked on
How to add an item to dropdown list? need to correct?
while dr(.Read())
{
Unitlocation qlocation = new Unitlocation();
qlocation.slocation = rdr["UNIT"].ToString();
listlocations.Add(qlocatio n);
when I debug this..qlocation has value of "Emply.PersonDb"...
qlocation.slocation has the string value I need to display
It does not take code listlocations.Add(qlocatio n.slocatio n)..
In debug mode there is a wrench icon for slocation value..
I used VS 2015
{
Unitlocation qlocation = new Unitlocation();
qlocation.slocation = rdr["UNIT"].ToString();
listlocations.Add(qlocatio
when I debug this..qlocation has value of "Emply.PersonDb"...
qlocation.slocation has the string value I need to display
It does not take code listlocations.Add(qlocatio
In debug mode there is a wrench icon for slocation value..
I used VS 2015
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yeah! I thought I closed this already. I didn't realize EE modify the process to close question. Pretty clever though!
ASKER