Home All Groups Group Topic Archive Search About
Author
24 Mar 2005 7:45 PM
anonymous
I have a user control on my form. How do I loop thought
user control to find out what controls are used and the
value of controls?
On user control there is some textbox, label etc.
depending on a passing value to a user control different
controls are displayed.
Thanks

Author
24 Mar 2005 9:01 PM
Brock Allen
foreach (Control c in MyUserControl.Controls)
{
}

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> I have a user control on my form. How do I loop thought
> user control to find out what controls are used and the
> value of controls?
> On user control there is some textbox, label etc.
> depending on a passing value to a user control different
> controls are displayed.
> Thanks
Author
25 Mar 2005 2:47 PM
anonymous
When I loop I can't see this control value. Why?
<span id="mycontol_lblCompany" style="font-
weight:bold;">Company</span>