Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to ForEach Page controls?
Message
From
13/11/2006 16:32:17
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01169266
Message ID:
01169319
Views:
9
>When I scan controls in the page as in the following:
>
>
>foreach (Control MyControl in Page.Controls)
>  {
>    // Can't find a property Type of MyControl or don't
>    // know how to determine the type of this control
>  }
>
>
>The comment above pretty much shows that I can't find how to detect the type. I know you work in VB.NET but maybe you see something in my approach that will give a clue.

You might find to start from the Body:
            ' Find Body control
            loControlGenericControl = oProcess.oPage.FindControl("Body")
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform