Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When does Entity get updated?
Message
De
28/07/2010 09:40:14
 
 
À
28/07/2010 09:24:06
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:
01474174
Message ID:
01474270
Vues:
26
Hi Tim,

>OK, now I understand better. If the user changes the sumAssured value in a textbox that is bound, it will not be bound back to the entity until a save occurs or the event is raised. What you could do, is either manually save it back first or just use the value from the textbox to pass into the CalculatePremium method. Later when the save occurs it would save that value back to the entity.
>

What "save" do you mean? I have a Save button which saves the entity back to the database, but I don't want this done until the user actually presses the Save button.

I also don't understand what you mean by "the event is raised". Could you explain that, please?

>You have a similar situation with the Entity.Premium where you have a value in the textbox and you are changing it in the entity. Then when the postback occurs, the value is being re-bound to the old value. This is all about timing really and you could approach this a couple of different ways. If you change the value in the textbox and you will ultimately do a save, then the value would be bound back during the save just fine.
>Tim

What are the couple different ways that I can approach this?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform