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
145.3k
radio button for two diffrent bool property in MVC5
Sep 1 2017 10:10 AM
hi all,
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; }
View :-
@Html.RadioButtonFor(m => m.AdministratorRefundAccess, new { @Name = "SelectedValue" })
@Html.RadioButtonFor(m => m.EmployerRefundAccess,new { @Name = "SelectedValue" })
Reply
Answers (
1
)
MVC Database fetching error
NuGet.Configuration.ISettings issue in Visual Studio 2015