Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
how to work with 2 diffrent radio buttons in mvc
Seshu B
Aug 29 2017 3:50 AM
193
Reply
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; }
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
without button post a comment in asp.net like facebook
Model value getting always false for Radio button in mvc