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
Use form collection
[HttpPost] public ActionResult Index(FormCollection fc) { string answerA = fc["Answer1"]; string answerB = fc["Answer2"]; string answerC = fc["Answer3"]; string answerD = fc["Answer4"]; return View(); }