Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
radio button for two diffrent bool property in MVC5
Seshu B
Sep 1 2017 10:10 AM
273
Reply
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" })
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
MVC Database fetching error
NuGet.Configuration.ISettings issue in Visual Studio 2015