'C# MVC Not able to save item list from Dropdown
I have a custom <select> HTML statement with items. Unfortunately, upon submitting the form, the data is not pushed to the database but rather rendered as NULL.
Partial Code segment is as below:
<select name="RootCause" id="RootCause" class="form-control">
@if (Model.RequestType == "Membership" || Model.RequestType == "Membership/Registration" || Model.RequestType == "General Enquiries")
{
<option value="Collaboration tool error">Collaboration tool error</option>
<option value="Syntax system error">Syntax system error</option>
}
The field RootCause is where the values should be populated into.
Any assistance would be appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
