Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to ForEach Page controls?
Message
 
 
To
13/11/2006 16:44:28
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01169266
Message ID:
01169339
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.

In my looking for it, I think I found that TypeOf is VB.NET method/function. And I could not find the C# equivalent. But I will look for Cetin's message.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform