asp.net - Removing duplicate item in an ASP CheckBoxList using C# -


i have checkboxlist control on web page. have property appenddatabounditems="true"

on postback checkboxlist retains checked items, appends duplicate list of items existing checkboxlist

if set property appenddatabounditems="false", on postback boxes checked lost, dupicate items list not appended.

how can retain checked items on postback , rid of duplicates in list added on postback?

do need hold checked values in array, , use reselect items in checkboxlist?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -