Is it possible to add the ListItem values in the code-behind within a for loop?
If so, what is it?
Here is my current code:
rblContentTypesGetAll.Items.Clear();
for (int i = 0; i < dt.Rows.Count; i++)
{
rblContentTypesGetAll.Items.Add(dt.Rows[i]["contentType"].ToString());
}
Needed to add
new ListItemand then comma-separate them.