Why Join
Become a member
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
C# Corner Home
Technologies
MonthlyLeaders
ASK A QUESTION
Forumguidelines
Manoj Mereddy
2k
8
99
MVC layout page
Dec 2 2020 10:34 AM
Hi I am trying to do the following
I have a html.beginform method which encloses the submit button in the layout page and when clicked it calls the action method in a controller.
Problem i am facing:
I have radio buttons in the layout page and depending upon the selected radio button it has to hit the right action method. Please help me with the if conditions of selected radio button, so that i can pass the action method as a variable name depending upon the selected value.
My question is how to write a if condition in the middle of the razor syntax layout page to check the radio button selected value.
Thanks,
Manoj
Reply
Answers (
3
)
Combine Array Elements in C#
How to pass Kendo Grid selected row to controller