In a partial view, I work with such text fields.
@model Dictionary<string, string> @Html.TextBox("XYZ", @Model["XYZ"])
How can I generate radio buttons and get the desired value as a collection as YES / NO True / False)? I am currently getting null for "ABC" if I select any value for below.
<label>@Html.RadioButton("ABC", @Model["ABC"])Yes</label> <label>@Html.RadioButton("ABC", @Model["ABC"])No</label>
controller
public int Create(int Id, Dictionary<string, string> formValues) {
Nanu May 29 '12 at 19:33 2012-05-29 19:33
source share