Connecting Tech Pros Worldwide Forums | Help | Site Map

how to make a group of dynamicaly radio buttons

Bisser Milanov
Guest
 
Posts: n/a
#1: Nov 17 '05
I add radio buttons created dynamically in a datagrid on each row of the
grid.
When I see the generated HTML I see that in front of each name for a radio
button is added: name="_ctl0:_ctl1:_ctl3: and this is unique for each radio
button. So they are never in the same group. How can I put them in the same
group?



Tu-Thach
Guest
 
Posts: n/a
#2: Nov 17 '05

re: how to make a group of dynamicaly radio buttons


You have to use the RadioButtonList class to make a group.

Tu-Thach
[color=blue]
>-----Original Message-----
>I add radio buttons created dynamically in a datagrid on[/color]
each row of the[color=blue]
>grid.
>When I see the generated HTML I see that in front of[/color]
each name for a radio[color=blue]
>button is added: name="_ctl0:_ctl1:_ctl3: and this is[/color]
unique for each radio[color=blue]
>button. So they are never in the same group. How can I[/color]
put them in the same[color=blue]
>group?
>
>
>.
>[/color]
Bisser Milanov
Guest
 
Posts: n/a
#3: Nov 17 '05

re: how to make a group of dynamicaly radio buttons


I know it has but it doesn't work because the .NET adds in front of it some
bullshit like ctl0_..ctl1 and then they are not any more in the same group

"Sonali.NET[MVP]" <xb_sonalix@hotmail.com> wrote in message
news:OvKJApBPDHA.4024@tk2msftngp13.phx.gbl...[color=blue]
> Radiobutton has groupname Property
>
> "Bisser Milanov" <bm@bm.bm> wrote in message
> news:O33bY$APDHA.1552@TK2MSFTNGP10.phx.gbl...[color=green]
> > I add radio buttons created dynamically in a datagrid on each row of the
> > grid.
> > When I see the generated HTML I see that in front of each name for a[/color][/color]
radio[color=blue][color=green]
> > button is added: name="_ctl0:_ctl1:_ctl3: and this is unique for each[/color]
> radio[color=green]
> > button. So they are never in the same group. How can I put them in the[/color]
> same[color=green]
> > group?
> >
> >[/color]
>
>[/color]


Closed Thread