2
Answers

About Dynamic Controls Event

yusuf

yusuf

15y
2.9k
1
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!
Answers (2)