|
 |
aspx_beginners thread: Radio Button Group
Message #1 by "Curt Emich" <cemich@c...> on Mon, 6 Jan 2003 19:09:38
|
|
I have a group of radio buttons on my .aspx page, and I'm trying to
reference that group in my code-behind .vb page. Do I use some sort of
collection object to represent this group? Once I have done that, how do
I determine which of the radio buttons are selected?
Thanks in advance for your help.
Message #2 by MSpruill <mspruill@m...> on Mon, 6 Jan 2003 16:44:30 -0500
|
|
I have my radio group setup and access it like this:
If rdoDates.Items(1).Selected = True Then
calStartDate.SelectedDate = calStartDate.TodaysDate
calEndDate.SelectedDate = calEndDate.TodaysDate
End If
Just like a VB Control Array...
HTH
Mitch Spruill
-----Original Message-----
From: Curt Emich [mailto:cemich@c...]
Sent: Monday, January 06, 2003 02:10
To: aspx_beginners
Subject: [aspx_beginners] Radio Button Group
I have a group of radio buttons on my .aspx page, and I'm trying to
reference that group in my code-behind .vb page. Do I use some sort of
collection object to represent this group? Once I have done that, how do
I determine which of the radio buttons are selected?
Thanks in advance for your help.
Message #3 by Curt Emich <cemich@c...> on Mon, 06 Jan 2003 16:54:23 -0500
|
|
Thanks. I also have discovered the RadioButtonList control. You enclose
radio buttons inside this tag as list items.
> -----Original Message-----
> From: MSpruill [mailto:mspruill@m...]
> Sent: Monday, January 06, 2003 4:45 PM
> To: aspx_beginners
> Subject: [aspx_beginners] RE: Radio Button Group
>
>
> I have my radio group setup and access it like this:
>
> If rdoDates.Items(1).Selected = True Then
> calStartDate.SelectedDate = calStartDate.TodaysDate
> calEndDate.SelectedDate = calEndDate.TodaysDate
> End If
>
> Just like a VB Control Array...
>
> HTH
> Mitch Spruill
>
>
>
>
> -----Original Message-----
> From: Curt Emich [mailto:cemich@c...]
> Sent: Monday, January 06, 2003 02:10
> To: aspx_beginners
> Subject: [aspx_beginners] Radio Button Group
>
>
> I have a group of radio buttons on my .aspx page, and I'm trying to
> reference that group in my code-behind .vb page. Do I use some sort of
> collection object to represent this group? Once I have done that, how do
> I determine which of the radio buttons are selected?
>
> Thanks in advance for your help.
>
>
|
|
 |