Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to ForEach Page controls?
Message
From
13/11/2006 16:44:28
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01169266
Message ID:
01169329
Views:
7
>I am probably not explaining myself well. I think I can find each control of the page but I can't find a function to determine what type of a control it is. That is, if I get a reference to a control MyControl, I don't know how to find out what type it is.

I use:
                If TypeOf loControl Is System.Web.UI.HtmlControls.TextBox Then
                    ...
                End If
But, you might want to search for related topics on this. Cetin provided another approach which is more robust.
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