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[i]["ContactKey "].ToString();
rbtn.GroupName = "Group1";
rbtn.CheckedCha nged += new
EventHandler(rb tn_CheckedChang ed);
if (ds.Tables[0].Rows[i]["PrimaryContact "].ToString() ==
"y")
{
rbtn.Checked = true;
}
pnlContactList. Controls.Add(rb tn);
How in the rbtn_CheckedCha nged event do I obtain the Id of the radio
button that is selected?
Cheers,
Mike
*** Sent via Developersdex http://www.developersdex.com ***