P
Phill
I have a Pocket PC app that has a combobox populated with data from SQL
Server Mobile. This is how I'm doing it now...which works:
SqlCeCommand cmd = new SqlCeCommand("SELECT Type_ID,Type
FROM tblEquipmentType ORDER BY Type", _conn);
cmd.Connection.Open();
rdr = cmd.ExecuteReader();
while (rdr.Read())
{
EquipmentType.Items.Add((string)rdr[1]);
}
What I want to do is load Type_ID in the hidden field (it is the primary
key). How do I change this to accomplish it?
Thanks.
Server Mobile. This is how I'm doing it now...which works:
SqlCeCommand cmd = new SqlCeCommand("SELECT Type_ID,Type
FROM tblEquipmentType ORDER BY Type", _conn);
cmd.Connection.Open();
rdr = cmd.ExecuteReader();
while (rdr.Read())
{
EquipmentType.Items.Add((string)rdr[1]);
}
What I want to do is load Type_ID in the hidden field (it is the primary
key). How do I change this to accomplish it?
Thanks.