How do I use the selected value from @Html.DropDownListFor for OnPost input value?
- @Html.DropDownListFor(x => Model.HazardsListEdit.SelectedHazClassId,
- new SelectList(Model.HazardsListEdit.HazardsClasses, "Value", "Text"),
- htmlAttributes: new { @class = "form-control", id = "HazClass", @required = true })
- for="HazId.HazClass" value=" " />


Sachin SinghRank #66 · 26.2K reputationPosted Nov 23, 2020, 8:02 PM EST
Marius VasileRank #785 · 2.9K reputationPosted Nov 23, 2020, 8:49 PM EST
Marius VasileRank #785 · 2.9K reputationPosted Nov 23, 2020, 8:51 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Nov 23, 2020, 5:58 PM EST
Marius VasileRank #785 · 2.9K reputationPosted Nov 23, 2020, 7:30 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Nov 23, 2020, 7:39 PM EST
Marius VasileRank #785 · 2.9K reputationPosted Nov 23, 2020, 7:47 PM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Nov 23, 2020, 8:02 PM EST