Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent Child Validation
Message
De
01/03/2012 07:02:01
 
 
À
29/02/2012 13:34:24
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01536877
Message ID:
01536919
Vues:
37
>Hi,
>
>I have a Receipt Entity and a Receipt Detail Entity. In order to reduce data entry errors the users must enter the Receipt Total which gets saved on the Receipt and then the total of the Receipt Details must match the figure manually entered. This works great when the user enters a positive amount as being the Receipt Total. If however, a negative figure is entered as the Receipt Total my verification is not working. Stepping through the code shows me that the ReceiptTotal is 0 even though it has been entered as -1 (for example). If I set it to +1, then the Total shows up as 1. What would cause a negative value to be changed to a zero value?

I got it! The textbox was defined with a cssclass which apparently was converting the -1 to (1) and then the value of that was 0!
Frank.

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

Click here to load this message in the networking platform