M
Mike P
I am working with some code where a number of contacts are taken from a
table and then added to a page with a radio button to the right of each
one where the name of each radio button has the contact key appended.
RadioButton rbtn = new RadioButton();
rbtn.ID = "btn" +
ds.Tables[0].Rows["ContactKey"].ToString();
rbtn.GroupName = "Group1";
rbtn.CheckedChanged += new
EventHandler(rbtn_CheckedChanged);
if (ds.Tables[0].Rows["PrimaryContact"].ToString() ==
"y")
{
rbtn.Checked = true;
}
pnlContactList.Controls.Add(rbtn);
How in the rbtn_CheckedChanged event do I obtain the Id of the radio
button that is selected?
Cheers,
Mike
table and then added to a page with a radio button to the right of each
one where the name of each radio button has the contact key appended.
RadioButton rbtn = new RadioButton();
rbtn.ID = "btn" +
ds.Tables[0].Rows["ContactKey"].ToString();
rbtn.GroupName = "Group1";
rbtn.CheckedChanged += new
EventHandler(rbtn_CheckedChanged);
if (ds.Tables[0].Rows["PrimaryContact"].ToString() ==
"y")
{
rbtn.Checked = true;
}
pnlContactList.Controls.Add(rbtn);
How in the rbtn_CheckedChanged event do I obtain the Id of the radio
button that is selected?
Cheers,
Mike