tags:

views:

47

answers:

1

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
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
@user407674 - You could use client-side validation.
Necros