Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent Child Validation
Message
From
01/03/2012 07:02:01
 
 
To
29/02/2012 13:34:24
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01536877
Message ID:
01536919
Views:
38
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform