Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indirect reference to controls or binding to arraylist i
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01341965
Message ID:
01343195
Vues:
20
>>Hi Paul,
>>
>>It's so close but I still can't get it to work. When I use ...GetValue(this), I get the error "Object reference not set to an instance of an object". I figured that was because the reference was to the form itself, rather than the control so I changed it to ...GetValue(txtName). I still get the error. I suspect it's still because it's reading the string rather than the reference to the control name, I just don't know what to do to get past that. I did make sure that the variable was indeed set to the name of a control on the form. Any ideas? Thanks.
>
>Strange. That really should work. Are these controls actually on the form (and not part of some other container)? Is this code running after InitializeComponent()? It sounds like the GetField() portion is failing (returning null). Is this code actually in the form itself (and not somewhere else, like your bizobj)?

Paul,
The code does run after InitializeComponent(). The controls are on a tab page.
Linda Harmes
HiBit Technologies, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform