Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I access the entity object from a textbox event?
Message
From
30/06/2008 17:52:41
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
27/06/2008 21:56:05
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01327405
Message ID:
01327753
Views:
13
Hi Sam,

>
>Hi Tim,
>
>Thanks for your quick reply and congratulations on your new MVP status. You are right, my question is more complicated. I am working on a special new textbox control and when a user attempts to leave the textbox I need to look at the underlying entity property that it is bound to. I need to do this in the validating event handler before the framework puts the new changed value into the entity property. For example: A user enters the textbox and it shows "abc" in the text property before the user makes any changes and then the user changes the text to "xyz" and attempts to leave the textbox. At that point before the framework puts the "xyz" into the entity property that the textbox is bound to, I need to see that "abc" is still in the entity property. There may be multiple business objects involved with the form.
>
>Any ideas?
>
>Sam Tenney

Ya know I suspected it was something like that. And thanks for the congrats. You are trying to validate the value against the original data but within the UI? Did you already try to access the BindingSource property to find the entity? Interesting, I guess I would have to do what you are doing to see what would work.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform