当用户选择单选按钮时,IsSelected
属性仍在false
回发,为什么?
看法
@using (Html.BeginForm())
{
<fieldset>
<legend>UserChoice</legend>
@Html.DisplayNameFor(model => model.IsSelected)
@Html.TextBoxFor(model => model.FirstName)
@Html.RadioButtonFor(uc => uc.IsSelected, false)
<input type="submit" name="name" value="Submit Form" />
</fieldset>
}
控制器