Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting a string to an object property
Message
 
À
14/06/2008 12:05:00
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01323589
Message ID:
01324446
Vues:
14
>No, not really ... it should still work just fine. Part of the problem you might have run into could be a case-sensitivity issue with the .GetField() and .GetProperty() methods ... being a VB guy, you're not used to case-sensitivity. <g> You can specify to ignore the CaseSensitivity with the BindingFlags. I know you said you already found a workaround, so maybe you don't want to bother with this, but this looks like it works fairly well and it's not that complicated:

Yes, if the code I posted fails it's usually because of the visibility or the casing. I actually tailored the original code so it would match the normal visibilty of ASP.NET controls dropped on a form.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform