Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I cast a string into an Object
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00832051
Message ID:
00834349
Views:
20
>>>I think the point is to dynamically access the label at runtime not the string "label1" etc. In addition to using Reflection you can also use the Control collections to find controls by name...
>>
>>That would make more sense then. The iteration of the collection is highly efficient but should serve the purpose. I wonder what reason he has against using the variable for the label itself? It would interesting to know.
>
>
>I need some way of getting to an instance of a control that I know it's name only at runtime (much like control arrays of VB6).

Ok, I just wanted to know. I guess your probably writing a general purpose function or something.

I meant to say NOT highly efficient, but should serve the purpose. I just noticed my ommission.

Anyway, if speed is not a concern it should work for you.
Brian Seekford
Seekford Solutions, Inc.
http://www.SeekfordSolutions.com
Internet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!
Previous
Reply
Map
View

Click here to load this message in the networking platform