Seshu B

Seshu B

  • NA
  • 442
  • 145.6k

how to work with 2 diffrent radio buttons in mvc

Aug 29 2017 3:50 AM
hi all,
i have two diffrent radio buttons one for AdministratorRefundAccess, another for EmployerRefundAccess and in that need to select only one value at time but here selecting both values . this is my problem . please provide solution regarding this....
 
i have tried below code
 
View page
---------------
@Html.RadioButtonFor(m => m.AdministratorRefundAccess, new { id = "Admin" })
 
@Html.RadioButtonFor(m => m.EmployerRefundAccess, new { id = "Employer" }) 
 
Model 
---------
public bool AdministratorRefundAccess { get; set; }
 
public bool EmployerRefundAccess { get; set; } 

Answers (1)