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?