Hi everyone,
I create dynamic controls to the page in Page_Load like this.
RadioButton rd = new RadioButton();
rd.ID = i.ToString();
rd.Text = a.secenekListesi[i].ToString();
rd.CheckedChanged += new EventHandler(rd_CheckedChanged);
PlaceHolder1.Controls.Add(rd);
LiteralControl literalBreak = new LiteralControl("
");
PlaceHolder1.Controls.Add(literalBreak);
and the event which i want to fire
void rd_CheckedChanged(object sender, EventArgs e)
{
// smt..
}
i cannot fire that event. Whats wrong wtih that code?
Thank you!
About Dynamic Controls Event
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Danatas GerviRank #4,152 · 361 reputationPosted Sep 8, 2009, 9:52 PM EDT
Your code looks correct…
I think, it may be something stupid – for example – the radio button that you see on page – this is not the rd which you add to controls (remains from old try or something)….
yusuf57 reputationPosted Sep 9, 2009, 7:44 AM EDT