I need help with validating a radio button list where I restrict values in asp.net c# code?

I have a air wave symbol list for stipulate where a user clicks Yes or No. we need to supplement a validator to this where we shorten a values to 1 as well as 0. we am not certain how to do this, can someone greatfully help.

One thought on “I need help with validating a radio button list where I restrict values in asp.net c# code?

  1. I believe you can use the event CheckedChanged to call a function. When that happens, you can set the value to a variable and check which button is checked. Assuming you have radiuButton1 as one of the ID of the radio button, then you could use radioButton1.Checked to check which one is checked. Also make sure that both buttons are on the same group.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>