Advertisement

09.09.2005 at 12:08AM PDT, ID: 21555784
[x]
Attachment Details

for loop for checkbox's on page

Asked by whatever in Programming for ASP.NET

Hello,

 I am making a calendar form manually.  I have 37 checkbox's inside a form and would like to change the text inside of them programmaticly but I don't know how to loop through the controls on the form.

 All of the controls on the form are runnat='server"  to include the checkbox's.

I think I need some thing like this:

for each something in myformname
 i += 1
 (checkboxname & i).Text = i
Next

I am sure the syntax on that statement is wrong.  

Can someone help me with this please?

thx,
WhateverStart Free Trial
[+][-]09.09.2005 at 12:15AM PDT, ID: 14850350

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Sign Up Now!
Solution Provided By: kalliopi
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.18.2005 at 09:02AM PDT, ID: 15108733

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.18.2005 at 09:16AM PDT, ID: 15108870

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32