How can I validate a radiobutton in asp.net mvc?
A:
Normally one value is made selected by default. In case No value is selected by default, this link may help http://stackoverflow.com/questions/722655/asp-net-mvc-html-radiobutton-exception
Tassadaque
2010-07-31 21:43:31
So good so far.. that were a huge help :) - Now the next problem is that I'm using PRG pattern (Post-Redirect-Get) - Which dosent allow me to do return View() because it will break the pattern.. Is there anyhow I can work around it and use a redirectToAction or I'm bound to use return view() ?
ebb
2010-07-31 21:51:12
@user407674 - You could use client-side validation.
Necros
2010-07-31 23:04:38