3
Answers

How to send dropdown list ID to controller

Photo of Shoaib Ahmed

Shoaib Ahmed

6y
602
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)