yusuf

yusuf

  • NA
  • 57
  • 0

About Dynamic Controls Event

Sep 8 2009 10:15 PM
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)