3
Answers

How to send dropdown list ID to controller

Shoaib Ahmed

Shoaib Ahmed

6y
575
1
@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)