This is a known bug in asp.net. This problem occurs because the Repeater
server control implements the INamingContainer interface, which requires
that all controls that are nested within it must have a unique name when
rendered in Hypertext Markup Language (HTML). Therefore, the HTML name
attribute of any rendered child server control is unique. For more details,
refer this link
http://support.microsoft.com/default...;EN-US;Q316495
Instead of asp.net radion button control, you can use this control
http://www.metabuilders.com/Tools/Ro...torColumn.aspx
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/ www.ExtremeExperts.com
"Mick" <sa****@libertysurf.fr> wrote in message
news:41***********************@news.free.fr...
Hi,
Got a repeater which display question answers and which contains a
placeholder.
In the ItemDataBound Event, I insert a Radio Button for each answer and
set their GroupName with the Question Id.
Anyway, when I display my aspx page, I can check ALL radio buttons at same
time !
What am I doing wrong?
*****
PlaceHolder plh = (PlaceHolder)CurrentItem.Controls[1];
System.Web.UI.WebControls.RadioButton NewRadio = new RadioButton();
NewRadio.ID="ClientCompanyTestQcmQuestionRadioProp ositon";
NewRadio.GroupName=CurrentP.Question_PropositionPa rent.Id;
NewRadio.Checked= false;
plh.Controls.Add(NewRadio);
*****
Thanks for help ^^