D
Dica
i've got a simple page with a dropdown list of employees and a series of
checkboxs showing their skills. the checkboxs are created dynamically from a
sql statement and viewstate = false is set on each one. once the dropdown
changes from one employee to another, the checkboxes are all recreated and i
check the database to see if that particular employee has that skill. if so,
i set the checkbox's checked state to true. however, when i look at the
newly rendered page, the only checkboxs that are checked are those that i've
manully checked. i could set the viewstate in the page directive, but that
applies to all controls and i want the page to remember which employee was
last selected.
so, it looks like my script is initializing the checkboxes to the correct
value initially, but after that .net steps in and sets them back to what was
last posted even though i've set viewstate to all checkbox controls to
false.
anybody got any ideas what i'd doing wrong here?
tks
checkboxs showing their skills. the checkboxs are created dynamically from a
sql statement and viewstate = false is set on each one. once the dropdown
changes from one employee to another, the checkboxes are all recreated and i
check the database to see if that particular employee has that skill. if so,
i set the checkbox's checked state to true. however, when i look at the
newly rendered page, the only checkboxs that are checked are those that i've
manully checked. i could set the viewstate in the page directive, but that
applies to all controls and i want the page to remember which employee was
last selected.
so, it looks like my script is initializing the checkboxes to the correct
value initially, but after that .net steps in and sets them back to what was
last posted even though i've set viewstate to all checkbox controls to
false.
anybody got any ideas what i'd doing wrong here?
tks