This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a large file that I am reading into ASP (boo hiss I know, but its company standard). Anyway, this file is a collection of directory and file names. Each entry should be a checkbox, and each group of files in that directory should belong to the direcotries checkbox group. (Follow me so far). My output looks something like: Directory Name Filename Filename Directory Filename Filename And so on with each directory and group of files being its own independant group. I need to actions: 1) If I check a directory all subsequent files in that group get checked and vice versa, if I uncheck it, all files should be unchecked. 2) Provide a selectAll button to select every checkbox on the page all at once. I can get the first part of number one, but I can't get the uncheck to work. I am calling on_Click="function_here" (I know it's spelled wrong but this board wouldn't let me post that otherwise.)but it seems the unchecking never gets registered. The problem with part two is, you will never know how many checkboxes there are because it will vary depending on the user. I am not sure how to get all the boxes checked. Any ideas? [ October 22, 2002: Message edited by: ryan headley ]
Ryan Headley<br /><a href="http://www.sudovi.com" target="_blank" rel="nofollow">http://www.sudovi.com</a>
Joined: Jun 28, 2000
UPDATE: I got number one figured out, rather simple really. Could have sworn I went thru it earlier, but number 2 is still giving me a hard time.
Joined: Jun 28, 2000
Your code works, but not for mine. The difference is, I think anyway, is that my checkboxes are being built thru ASP. In some of these pages there will be 26 or more "groups" of checkboxes, each with the name of "fileGroupX" where X is a number. All files of the same group will have the same number. What I've done so far is this:
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com