Thread: Checkbox
View Single Post
  #1 (permalink)  
Old January 29th, 2011, 12:19 PM
123mehran 123mehran is offline
Registered User
Join Date: Jan 2011
Posts: 9
Thanks: 6
Thanked 0 Times in 0 Posts
Default Checkbox

when i checked the item1 and then item2 ,the item1 repeat
like this:
what should i do?
      Protected Sub CheckBoxList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CheckBoxList1.SelectedIndexChanged
      For i As Integer = 0 To CheckBoxList1.Items.Count - 1
      If CheckBoxList1.Items(i).Selected Then
      lbl1.Text &= CheckBoxList1.Items(i).Text + "<br/>" 
      End If
      End Sub