C# SelectedValue vs. SelectedItem

05.27.2011

myClient.Servicekey = int.Parse(DropDownList1.SelectedValue);
myClient.Servicename = DropDownList1.SelectedItem.ToString();

 

SelectedValue refers to the primary key

SelectedItem refers to the name