I have an div id = campaignDiv
and I load its content dynamically
The content is checkboxes .
I have an update panel that fires every 30 seconds. >
To have more space for code here is my suggestion for the checkboxlist again. I hope it's that what you are asking for.
.aspx
.aspx.cs
if (!IsPostBack)
{
var comps = new[] { "default", "sales", "direct" };
for (int i = 0; i < comps.Count(); i++)
{
myCheckboxList.Items.Add(new ListItem{Text = comps[i]});
}
}
This way it will keep your checkbox checked