Hi i have three Fields in my view.That three fields are drop down. I want to pass the value to these fields when edit button is clicked. That is the values need to pass to that
use:
@Html.DropDownListFor(model => model.EmployeeID,(IEnumerable)ViewData["EmployeeName"])
The important part being "DropDownListFor". You are using "DropDownList".