Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Please help with Radio buttons

Reply
Thread Tools

Please help with Radio buttons

 
 
momo
Guest
Posts: n/a
 
      11-07-2003
Hello all,

I need some help with radio buttons. This is what I have. I have 15 groups
of radio buttons and each group contains three radio buttons which non of
them are selected.

I need a way to see which button in each group was selected. All these radio
buttons are optional, meaning it doesn't have to be selected but if any was
then I need to find out which one did. Please help.


Thanks,

Momo


 
Reply With Quote
 
 
 
 
Chris Jackson
Guest
Posts: n/a
 
      11-07-2003
If you are using <input type=radio ...> elements, then the only way to
determine which is checked is to iterate through every single
HtmlInputRadioButton on the page and interrogate the checked property.
However, you could use the <asp:RadioButtonList ...> object, and test the
SelectedItem group of the list for its value (null if none selected) to save
yourself some code. I'm not sure, but I think that's a new web control for
the 1.1 framework, in case you are still using 1.0.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Shell/UI
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"momo" <(E-Mail Removed)> wrote in message
news:u%(E-Mail Removed)...
> Hello all,
>
> I need some help with radio buttons. This is what I have. I have 15 groups
> of radio buttons and each group contains three radio buttons which non of
> them are selected.
>
> I need a way to see which button in each group was selected. All these

radio
> buttons are optional, meaning it doesn't have to be selected but if any

was
> then I need to find out which one did. Please help.
>
>
> Thanks,
>
> Momo
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Created Radio Buttons displaying as if they were conventional buttons Dr. Leff Javascript 3 10-15-2007 09:47 PM
Created Radio Buttons displaying as if they were conventional buttons Dr. Leff Javascript 3 10-15-2007 05:18 AM
ASP.NET Reset Radio Button in a group of Radio Buttons Scott D Johnson ASP .Net 1 09-27-2006 10:38 PM
Please how to use radio buttons not Select Dave Javascript 0 03-06-2004 07:20 AM
Help Data bindings with Radio Buttons Akin Seigmund Walter-Johnson III ASP .Net 0 02-26-2004 06:42 PM



Advertisments