ASP.NET Dynamic Radiobutton - How to add validation
- by Velnias
At the moment I have something like this
`
<%# Eval("orderBy").ToString()%)
<%# Eval("question").ToString()%
" type="radio" id="True" value="True" class="styled" /
" type="radio" id="False" value="False" class="styled" /
`
And in the code behind I caputure the values as Request.Form("question1") for example and this all works fine
Now I am wondering how to add validation to this, I think i have to change to asp Radio Button control but i cant see how i could add my dynamic radiobutton names in there with my id from stored procedure.
Also I would like to add the validation to the top of the screen as a validation summary
Any Ideas ?