Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimals Not Displaying
Message
De
09/03/2011 11:04:42
 
 
À
09/03/2011 08:34:34
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01503018
Message ID:
01503038
Vues:
28
>Hi,
>
>I'm using MM.NET 3.6, C# and ASP.NET.
>
>I have a form with this definition:
>
>
<mm:mmTextBox ID="txtRating" runat="server" BindingSource="Policy" BindingSourceMember="Rating"
>    Width="79px" AutoPostBack="True" OnTextChanged="txtRating_TextChanged"></mm:mmTextBox></p>
>
>This displays numbers like 1.175 properly when I run the application on my PC. At my client's site, just the 1 before the decimal is displayed in the textbox, (but we can tell by a calculated field based on this number that the correct value is there). Is there some setting on the server that controls if decimals are displayed?

I checked the table definition and it was numeric (10, 2). I've changed this to numeric (10, 5) entered a number of 1.175 and what got stored to the table was 1.18! I don't suppose SQL Server 2008 R2 would automatically round things, would it? I'm not seeing anything in my code that does it, but will check again.

UPDATE: I regenerated the data access stuff for Mere Mortals and that has fixed the rounding problem. However, I still have not worked out why only 1 was showing at the client's site. Any ideas?
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