Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BindindContext: early-binding?
Message
From
31/07/2003 16:57:20
 
 
To
31/07/2003 16:51:12
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00815629
Message ID:
00815631
Views:
19
Hey Claudio,

I've got a kludgy way around it, but it works. When I type in this.Customer, I'll also put the "." to let Intellisense kick in, then choose the correct property (Address), then put in the quotes and go back and get change the "." to a ",".

~~Bonnie



>Hey there.
>
>I realize I can bind for example a textbox to a property in a business object like this:
>
>
>this.txtAddress.DataBindings.Add("Text", this.Customer, "Address");
>
>
>However, if I pass a non-existent property as the third parameter (or even a typo for that matter... as in "Addressosssss"), the compiler will not be able to catch that.
>
>Is there any way that I could do such binding, but in a way that the compiler could enforce that the member really does exist?
>
>TIA
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform