How to select only ONE choice

  • Thread starter Thread starter Q. John Chen
  • Start date Start date
Q

Q. John Chen

I have following senario on a page:

Category A
Choice 01
Choice 02

Category B
Choice 03
Choice 04

I want only allow select ONE choice but I can not use radiobutton group
since they are seperated. Any suggestion?

Thanks

John
 
Q. John Chen said:
I have following senario on a page:

Category A
Choice 01
Choice 02

Category B
Choice 03
Choice 04

I want only allow select ONE choice but I can not use radiobutton group
since they are seperated. Any suggestion?

Thanks

John

Just use radio buttons, not the list, and give them all the same group name.
 
That solved my GUI problem.

But I have fifty of them. Is there an easy way (a loop) to check the
value rather than 50 if statement?

Thanks

John
 
My radioButtons are on a panel. So I just loop thru all the controls on
the Panel.

BTW, I also end up using HtmlInputRadioButton. Because I also want to
use the value rather than the display text. and RadioButton web control
does not have a value/text pair. So I can dynamically fetch the value
also.
 

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

Back
Top