Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding to Data Entities
Message
From
19/05/2009 08:55:11
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01400542
Message ID:
01400601
Views:
38
I should have added by telling you a bit more. The BindingSource and BindingSourceMember properties are new properties added by the framework. All the plumbing is in the framework to bind this for you properly and thus is why they BindingSource is set to the Business object itself. Below in your code, you are trying to set this to the Entity object but the framework will take care of it all for you. Simple binding is just the BindingSource to the biz obj and then the member to the field.
Hope that helps.
Tim

>Ok, I've got my page now creating a business object on page load and loading an entity based on ID. But my controls don't seem to be binding properly to the business object's entity property. Here's the code.
>
>
>   <mm:mmTextBox ID="txtAddress" runat="server" 
>        BindingSource="this.oCustomer.Entity" BindingSourceMember="txtMailAdd1" 
>        BindingSourceType="ObjectProperty"></mm:mmTextBox>
> 
>
>
>The debugger shows that this.oCustomer.Entity.txtMailAdd1 has the correct data in it, but it doesn't appear in my text box.
>
>Thanks,
>
>Eric
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform