I am dynamically creating an asp.net RadioButton and inserting it into my web page:
RadioButton rb = new RadioButton();
rb.ID = "rb" + ReportPKey;
rb.Text = "ReportName";
phUiControls.Controls.Add(rb);
I have the following method:
protected void rb_CheckedChanged( object sender, EventArgs e )
{
// stuff
}
How do I wire this up so that rb_CheckedChanged is fired when rb is clicked?
1 Answer