mikenam
10-02-2007, 11:32 PM
Well trying to write a program where there is a checkboxlist and the maximum that should be allowed to check is 5.
this is what i have and its not working. i can select 9 and the max 5 literal will not display
For i = 0 To 9
If checkboxlist1.Items(i).Selected Then
count = count + 1
End If
Next
If count > 5 Then
Literal1.Text = "Maximum 5 cities"
End If
Thank You
this is what i have and its not working. i can select 9 and the max 5 literal will not display
For i = 0 To 9
If checkboxlist1.Items(i).Selected Then
count = count + 1
End If
Next
If count > 5 Then
Literal1.Text = "Maximum 5 cities"
End If
Thank You