ASP.net UI refresh issue
<p>I am using a checkbox and a checkbox list in one of my web pages.</p>

<p>The UI is like</p>

<p>Color - Header Checkbox</p>

<p>Checkboxlist items are</p>

<p>Red   </p>

<p>Green</p>

<p>Blue</p>

<p>Yellow </p>

<p>Complete selection  - clicking on the header checkbox selects/ deselects the entire checkbox list.</p>

<p>Partial selection of the checkbox list shows the header checkbox with a different background color to indicate partial selection.</p>

<p>I do a check for number of selected items in each of the checkbox list selection changes. In a client server environment, there is a time delay and if we make two continuous selections in the checkbox list, an update of the header control is done for the first selection and by the time UI is refreshed, the second selection is gone. 
I also implemented the above one using JavaScript but then also the behavior is same.
What could be an alternative for this?</p>
