Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 12th, 2005, 01:28 AM
Authorized User
 
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Check all checkboxes in a checkboxlist in repeater

Hi all,
I have a web form which contains...

A repeater which contains all sports.
Within the sports repeater is a repeater which contains the conferences within that sport.
Within the conferences divisions repeater is a repeater which contains the divisions within that conference.
Within the divisions repeater is a checkboxlist which contains the teams within that division.

The display of these is a tree structure, like so....
NFL
    AFC
        [_] East
            [_] Patriots
            [_] Bills
            [_] Jets
            [_] Dolphins
        [_] North
        [_] South
        [_] West
    NFC
NBA
NHL
etc...

Next to each division, I have a checkbox. I can't figure out how, if someone checks this checkbox, it'll check all of the checkboxes of the teams within that division (which are in a checkboxlist.)

The HTML generated for one of the division checkboxes looks like so:

<input id="sportsRepeater__ctl0_baseDivisionsRepeater__ct l0_divisionsRepeater__ctl0_divisionCB" type="checkbox" name="sportsRepeater:_ctl0:baseDivisionsRepeater:_ ctl0:divisionsRepeater:_ctl0:divisionCB" />

The HTML generated for one of the team checkboxlists looks like so:

<table id="sportsRepeater__ctl0_baseDivisionsRepeater__ct l0_divisionsRepeater__ctl0_teamsList" border="0">
    <tr>
        <td><input id="sportsRepeater__ctl0_baseDivisionsRepeater__ct l0_divisionsRepeater__ctl0_teamsList_0" type="checkbox" name="sportsRepeater:_ctl0:baseDivisionsRepeater:_ ctl0:divisionsRepeater:_ctl0:teamsList:0" /><label for="sportsRepeater__ctl0_baseDivisionsRepeater__c tl0_divisionsRepeater__ctl0_teamsList_0">New England Patriots</label></td>
    </tr><tr>

        <td><input id="sportsRepeater__ctl0_baseDivisionsRepeater__ct l0_divisionsRepeater__ctl0_teamsList_1" type="checkbox" name="sportsRepeater:_ctl0:baseDivisionsRepeater:_ ctl0:divisionsRepeater:_ctl0:teamsList:1" /><label for="sportsRepeater__ctl0_baseDivisionsRepeater__c tl0_divisionsRepeater__ctl0_teamsList_1">Miami Dolphins</label></td>
    </tr><tr>
        <td><input id="sportsRepeater__ctl0_baseDivisionsRepeater__ct l0_divisionsRepeater__ctl0_teamsList_2" type="checkbox" name="sportsRepeater:_ctl0:baseDivisionsRepeater:_ ctl0:divisionsRepeater:_ctl0:teamsList:2" /><label for="sportsRepeater__ctl0_baseDivisionsRepeater__c tl0_divisionsRepeater__ctl0_teamsList_2">New York Jets</label></td>
    </tr><tr>
        <td><input id="sportsRepeater__ctl0_baseDivisionsRepeater__ct l0_divisionsRepeater__ctl0_teamsList_3" type="checkbox" name="sportsRepeater:_ctl0:baseDivisionsRepeater:_ ctl0:divisionsRepeater:_ctl0:teamsList:3" /><label for="sportsRepeater__ctl0_baseDivisionsRepeater__c tl0_divisionsRepeater__ctl0_teamsList_3">Buffalo Bills</label></td>
    </tr>
</table>

Any help would be greatly appreciated...

Thanks!!
Justin

Justin Toth
http://www.universityauction.net
__________________
Justin Toth
http://www.universityauction.net





Similar Threads
Thread Thread Starter Forum Replies Last Post
check n uncheck items in checkboxlist in datalist moorejkrkumar ASP.NET 1.0 and 1.1 Basics 1 April 17th, 2007 01:39 PM
Check all Checkboxlist items on client-side avilren ASP.NET 1.0 and 1.1 Basics 2 July 9th, 2006 10:40 AM
check all checkboxes with a <td> onClick event crmpicco Javascript How-To 1 August 19th, 2005 09:17 AM
checkboxes check is it possible using js blueguy Javascript 1 October 26th, 2004 02:35 AM
CheckBoxList eddiema VS.NET 2002/2003 1 April 9th, 2004 09:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.