ASP.NET Dynamic Radiobutton - How to add validation

Posted by Velnias on Stack Overflow See other posts from Stack Overflow or by Velnias
Published on 2009-01-21T16:27:05Z Indexed on 2010/05/02 1:07 UTC
Read the original article Hit count: 451

Filed under:
|
|
|

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 ?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about radio