P
peterw
Hello,
I have a checkboxlist populated by a database and a button. I check some
items in the checkboxlist and submit with the button, the checkboxlist items
remain checked. If I then want to uncheck some items, and submit with the
button, the items are checked again. Anyone has a solution / idea what i do
wrong?
the checkboxlist has the viewstate enabled.
the checkboxlist is populated in the Page_Load:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(!Page.IsPostBack)
{
PopulateCheckBoxList();
}
}
TIA
Peter
I have a checkboxlist populated by a database and a button. I check some
items in the checkboxlist and submit with the button, the checkboxlist items
remain checked. If I then want to uncheck some items, and submit with the
button, the items are checked again. Anyone has a solution / idea what i do
wrong?
the checkboxlist has the viewstate enabled.
the checkboxlist is populated in the Page_Load:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(!Page.IsPostBack)
{
PopulateCheckBoxList();
}
}
TIA
Peter