WebInput Decimal Configurator not displaying decimal value.

14 replies. Last post: October 31, 2011 12:10 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Frank PMember

From the .aspx:

<WebInput runat="Server" ID="txtIndex" Width="75px" AcceptEnter="False" CssClass="spanBlockMiddle25" />

<WebInputDecimalConfigurator FloatScale="4" MaxLength="7" MaxValue="999.9999" MinValue="0" Name="txtIndex" />

 

 

From my codebehind – in PreRender:

I am retrieving the UserControl value from the container.

 

        Dim txtIndex As WebInput = ctlForecastMethodMulti.FindControl("txtIndex")

        txtIndex.Text = 2.25

 

The value in is set to 2.25, but after it is assigned txtIndex.Text = 2 and txtIndex.Value = 2.25. (I see this stepping through debug mode)

When the page displays, "2" is displayed in txtIndex.

 

What is affecting the display value (.Text) and how do I use the configurator to display the correct decimal value?

Are my culture settings automatically handled (if I change numeric to #.###,00 this type of format)?

All times are GMT -5. The time now is 8:00 PM.
Previous Next