Hi All,
I have a dropdownlist that I need to add an item to. I have the text & value for this item, but do not know how to set the DataValueField.
Here is how I am adding the item:
drpHRDepartment.Items.Add(objDataReader("strDepartment".ToString())
How do I now set the ID for the department to the DataValueField for this item?
Thanks,
Mark
I have a dropdownlist that I need to add an item to. I have the text & value for this item, but do not know how to set the DataValueField.
Here is how I am adding the item:
drpHRDepartment.Items.Add(objDataReader("strDepartment".ToString())
How do I now set the ID for the department to the DataValueField for this item?
Thanks,
Mark