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
I saw this on another thread and it work like a champ.
Razor view like this:
@using (Html.BeginForm("test", "testcontroller")) { @Html.RadioButton("CashPayment", "1")Yes @Html.RadioButton("CashPayment", "0")No }
And Controller like this:
public ActionResult test(string CashPayment) { //your code }