Manoj Mereddy

Manoj Mereddy

  • NA
  • 13
  • 451

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 

Answers (3)