HTMLInputRadioButton Question

R

Roshawn

Hi,

I have three radio button controls on my form (they are HTMLInputRadio
buttons). I've set each controls Name attribute to "RadioGroup" to
establish them as a group of controls. How can I determine which radio
button is checked via code without any of the controls needing the
"runat='server'" attribute?

Thanks,
Roshawn
 
B

bruce barker

you give each radio button a unique value. then on postback the browser will
send the control and its name/value pair if selected. if none are selected,
no value pair is sent. the name/value pairs are in the request.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top