Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for existence
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00924170
Message ID:
00924930
Views:
7
Thanks Rob. It worked great. I ended up using the MethodInfo instead but the consept is the same.
Again thank you.

Einar
>You need to use Reflection. Here's an example that checks for properties of a Button control.
>
>
>using System.Reflection;
>...
>PropertyInfo pi;
>pi = button1.GetType().GetProperty("Text");
>MessageBox.Show(pi == null ? "Property does not exist." : "Property exists.");
>pi = button1.GetType().GetProperty("Foo");
>MessageBox.Show(pi == null ? "Property does not exist." : "Property exists.");
>
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform