mobile SelectionList

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is my code in C#
SelectionList1.DataSource = dsDropDown1.tblCaller;
sqlDataAdapter1.Fill(dsDropDown1);
SelectionList1.DataBind();
But I dont get back the correct data. I get the name of DataValueField
instead of the value. When I look at the source It has 0-8 but that values
not passed either.
 
Hi,

WHen you fill tah dataset specify teh table as well:
sqlDataAdapter1.Fill(dsDropDown1, "tblCaller");

Then set the datavalue and datatext properties as well.

That should solve your problem.
 
Back
Top