Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding to Data Entities
Message
De
19/05/2009 08:55:11
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01400542
Message ID:
01400601
Vues:
39
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform