I have a create view with multiple DropDownListFors. Each time a new object is created only 1 of the DropDownListFors should have a value, I want the others to return 0 as the result when the optionLabel is left selected.
How do I assign 0 as the value for a DropDownListFor's optionLabel?
EDIT: Here is an example of my DropDownListFor code in my view:
@Html.DropDownListFor(model => model.cardReward.ID, new SelectList(ViewBag.cardReward, "Id","Name"), "None")
When I render the page it creates the list with None at the top like this:
<option value>None</option>
I want it to be like this:
<option value="0">None</option>