I\'m trying to pass this selected radio button value from the razor view to the controller.... can someone please give me an idea how to do this?..................... My Vi
If you are giving same name for your radio buttons, then you can try the following code
Controller
[HttpPost] public ActionResult Index(string Answer) { return View(); }
View
@using (Html.BeginForm("Index", "Demo")) { @Html.RadioButton("Answer", "A") A @Html.RadioButton("Answer", "B") B }