Yoel,
When you are building your page, give each control a name like CheckBox_1, CheckBoc_2,
etc. Make sure that there is a similar name to each one, the only difference being a
number. Think of this as an index of sorts.
As you do this, keep a variable that increments every time you create a control. This
will be used to indicate the total number of checkboxes created.
After you finish creating your controls, store the count value in a hidden control:
<input type="hidden" name="TTLNumOfCheckBoxes" value="YourVariable">
After you submit the page, retrieve this value:
Dim strNumOfControls
strNumOfControls = Request.Form("TTLNumOfCheckBoxes")
Now do a loop and get each checkbox:
For intLoopCounter = 1 to strNumOfControls
Request.Form("CheckBox_" & intLoopCounter )
Next
Within your for loop, do whatever you need to do. You did not specify what logic
would be used to determine which controls needed to be checked, but that part should
be easy to add.
HTH,
Mark
yoelgan <[EMAIL PROTECTED]> wrote:
b"h
hi,
I have some dynamic checkbox's in a ASP page I want to do a Wile...
wend loop for verifacation on SOME of the checkbox's by ther ID
somthing like
Do wile IsObject(form.chekboxG0)
..............
.. (code) ....
Wend
but it wont work can someone help me PLS (or give me a other idea
Thanks
Yoel
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/