This is my code:
@Html.DropDownList("Locate", new List<SelectListItem>
{
new SelectListItem {Text = "Luxor", Value="1"},
new SelectListItem {Text = "Abu Simbel Airport", Value="2"},
new SelectListItem {Text = "Other", Value="3"}
},"Select Location")
what I need is, when user select a list item, how to pass the selected item to controller. because data load is change according to selected list item.like below in controller.
if (Value == "1")
{
return View(cp);
}
else
{
return View(cp1);
}