Hi there,
You can clear the Label's Text before you start the loop:
Code:
Protected Sub CheckBoxList1_SelectedIndexChanged(ByVal sender As Object, _
ByVal e As EventArgs) Handles CheckBoxList1.SelectedIndexChanged
lbl1.Text = String.Empty
For i As Integer = 0 To CheckBoxList1.Items.Count - 1
If CheckBoxList1.Items(i).Selected Then
lbl1.Text &= CheckBoxList1.Items(i).Text + "<br/>"
...
End Sub
Alternatively, you can set the Label control's EnableViewState to False in the Mark Up:
Code:
<asp:Label ID="lbl1" runat="server" EnableViewState="False" .... />
This way, the Label's Text is automatically reset after each post back.
Hope this helps,
Imar