Shoaib Ahmed

Shoaib Ahmed

  • NA
  • 189
  • 5.3k

How to send dropdown list ID to controller

Jan 9 2019 1:26 AM
@using EnracWebApp.Controllers
@model IEnumerable<MVC.ProjectInformation>
 
<select>
@foreach (var projects in Model)
{
<option id="@projects.SurveyId">@projects.SurveyName</option>
}
</select>
 
How can I send this id to the controller ?

Answers (3)