@Html.BeginForm("ShowDetails", "Home", new { id="opt1"}) @*@Html.DropDownListFor(m => m.FirstName, new SelectList(ViewBag.ListContact));*@ <div> <select id="Select1"> @foreach(var c in Model) { <option value="@c.IdContact" id="opt1"> @c.FirstName @c.LastName </option> } </select> <input type="submit" onsubmit="" /> </div>
Html.BeginForm("ShowDetails", "Home", new { id = ViewBag.IdContact })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)