christophe
1/3/2003 10:27:00 AM
Thanks for replying.
Here is the good code :
void ManipulateTexbox1(Object sender, EventArgs e) {
TextBox[] TextBoxArray = new TextBox[3] { txtBox_1, txtBox_2,
txtBox_3 };
for (int i = 0; i < 3; i++){
ManipulateTexbox2(TextBoxArray[i]);
}
}
void ManipulateTexbox2 (TextBox txtB){
txtB.Text = "lorem" ;
}
"Kim Bach Petersen" <msnews@kensho.dk> wrote in message
news:uOfYWkrsCHA.968@TK2MSFTNGP12...
> > There is a way to do that ?
>
> Simply make an array of textboxes (or other controls):
>
> Dim TextBoxes(5) As TextBox
>
> The textboxes can now be added dynamically (Page.Controls.Add) or read
into
> the array using FindControl if they are predefined.
>
> Kim :o)
>
>