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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -