I have a web page where a checkboxlist is created dynamically from a XML file.
The XML looks like this:
<properties>
<property id="abc" value="150" text="mumbo jumbo" />
<property id="def" value="150" text="more mumbo jumbo" />
I am creating my checkboxlist like this:
if (checkBoxes.Count > 0)
{
chkServices.DataSource = checkBoxes;
chkServices.DataTextField = "text";
chkServices.DataValueField = "value";
chkServices.DataBind();
}
I would like to get the id going with those individual checkboxes but can't seem to figure it out.
Any ideas?