Question: how to get the selected value from dropdownlist in mvc?
Answer: { // GET: Home.
public ActionResult Index() {
return View(); }
[HttpPost]
public ActionResult Index(PersonModel person) {
int personId = person.PersonId; string name = person.Name;
string gender = person.Gender; string city = person.City;
return View();