I found some code to help me fill a drop down list that is listed here. It works fine. However, I need the drop down list to display a friendly choice while the back-end should pass a number value. I don't know where to enter this. Can anybody help by looking at this code? I fill a repeating control and then I use that to fill the drop down.
conn.Open();
SqlDataAdapter da = new SqlDataAdapter(command);
DataSet ds = new DataSet();
da.Fill(ds);
XPathNavigator Loc = nav.SelectSingleNode("/my:myFields/my:Fddl", this.NamespaceManager);
Loc.SetValue("");
XPathNavigator tempNode = Loc.Clone();
foreach (DataRow dr in ds.Tables[0].Rows)
{
XPathNavigator newNode = tempNode.Clone();
string value = dr[0].ToString();
string nm = dr[1].ToString();
newNode.SetValue(nm);
Loc.InsertAfter(newNode);
}