TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Seshu B
NA
442
144.9k
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; }
Reply
Answers (
1
)
without button post a comment in asp.net like facebook
Model value getting always false for Radio button in mvc