Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indirect reference to controls or binding to arraylist i
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01341965
Message ID:
01343195
Views:
19
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform