I have a DDT binding server side to Id & Name, I also have checkboxes
rdtLocation.DataSource = locations;
rdtLocation.DataTextField = "Name";
rdtLocation.DataFieldID = "Id";
rdtLocation.DataValueField = "Id";
rdtLocation.DataFieldParentID = "ParentId";
rdtLocation.DataSource = locations;
rdtLocation.DataBind();
With one selected item when I look at the selectedValue I get a comma separated list containing 2 instances of the id. ie - "2,2"
See attached screen shot.
Why is this and what is the fix.
Andy