i have 2 properties in model and two radio buttons in view page and after selecting radio button value as true, model value getting as false always ,
this is my problem , i have tried a lot still i didn't find soultion
please provide soultion regarding this.
i have tried below code
Model :-
public bool AdministratorRefundAccess { get; set; }
public bool EmployerRefundAccess { get; set; }
public bool EmployerRefundAccess { get; set; }
View :-
@Html.RadioButtonFor(m => m.AdministratorRefundAccess, new { @Name = "SelectedValue" })
@Html.RadioButtonFor(m => m.EmployerRefundAccess,new { @Name = "SelectedValue" })

Manikandan MurugesanPosted Sep 1, 2017, 12:54 PM
Then when you submit the form, you will get the selected value in
SelectedValueproperty.EDIT To Address @StephenMuecke point, created the below solution -
Create a
enum-SelectedValueproperty.