I am having a bit of trouble with A dropdownlist that is supposed to be populated with values that correspond to ID keys in a database. So ideally i want something that looks like this in the dropdown list
value="0" USA value="1" ETC
and my code behind looks like this
public TabletViewModel(Tablet tablet)
{
Tablet = tablet;
//AreaHelper.Areas, tablet.Location.Name
Areas = new SelectList(AreaHelper.Areas, tablet.Location.Name);
}
whenever I try to add overflow methods to the selectlist constructor I get exception errors when I try to add the LocationID
anyone have any ideaS?