Dropdown list question
Hi everyone,
I have a question. I am filling a dropdownlist with the first and lastname of my table employees. The problem is that I want to get the employee's id but I don't want it to be displayed in my dropdownlist. I don't know if there is any chance to put set the employee_id as the value of each <asp:ListItem></asp:ListItem> and then get it by using the SelectedValue property?
Thanks!
pd. I am using a DataSource to fill my dropdownlist and a stored procedure that selects only first and lastname from my tableEmployee.
|