Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01170530
Message ID:
01170880
Views:
7
>Hi Paul.. thanks for your reply.
>
>Thats exactly what I want.
>One more question...
>If I wanted to cycle through each of these text boxes and say assign a caption to each of them,is that possible ?

I'm not sure what you mean by caption?

At any rate, you can cycle through the Controls collection and set anything you need to:
foreach(Control control in this.Controls)
{
   TextBox txtbox = control as TextBox;

   if (txtbox != null)
   {
      txtbox.Text = txtbox.Text + " More Text";
   }
                
}
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View