Select all: using Check box

Results 1 to 2 of 2

Thread: Select all: using Check box

  1. #1
    Join Date
    Dec 1969

    Default Select all: using Check box

    I am using Repeater control and displaying check box for each record. There is one check box displayed on top of the repeater control. when this check box is checked then all the check boxes in the repeater control should be checked. The check box in repeater control is HTML check box and the Main check box is Web control check box. How can i achieve this?

  2. #2
    Join Date
    Dec 1969

    Default RE: Select all: using Check box

    *NOT TESTED* Set AutoPostBack = True. You can also do it client side but I don&#039;t know Javascript, sorry ;)<BR><BR>Private Sub MasterCheckBox_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MasterCheckBox.CheckedChanged<BR><BR>Dim counter As Integer<BR>Dim selected As Boolean<BR>selected = MasterCheckBox.Checked<BR>For counter = 0 To CheckList.Items.Count - 1<BR>CheckList.Items(counter).Selected = selected<BR>Next<BR>End Sub<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts