This is a migrated thread and some comments may be shown as answers.

Missing Zeros

4 Answers 60 Views
Input
This is a migrated thread and some comments may be shown as answers.
Patrick Wilson
Top achievements
Rank 1
Patrick Wilson asked on 15 Jun 2010, 07:57 PM
I am doing a cross-page post using something similar to this...

Dim

 

amount As RadNumericTextBox = Me.PreviousPage.FindControl("txAmount")

 


If the end-user types in an amount, such as 12.50 on the original page, the cross page post will drop the 0.

How can i retain the zero buring a cross-page post?

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Jun 2010, 07:55 AM
Hello Patrick,

12.5 is a number, while "12.50" is a formatted string. The RadNumericTextBox value type is nullable double, so if you want a trailing zero, you need to take the control's value and format it manually on the server.

Sincerely yours,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Patrick Wilson
Top achievements
Rank 1
answered on 16 Jun 2010, 12:13 PM
Thanks Dimo for the information.

Sorry for my ignorance, but how do i format it the value to retain the trailing zero on the server?
0
Accepted
Dimo
Telerik team
answered on 16 Jun 2010, 01:06 PM
Hi Patrick,

Please refer to:

http://msdn.microsoft.com/en-us/library/fht0f5be.aspx

http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx

Best wishes,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Patrick Wilson
Top achievements
Rank 1
answered on 16 Jun 2010, 07:54 PM
Thanks for the help!
Tags
Input
Asked by
Patrick Wilson
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Patrick Wilson
Top achievements
Rank 1
Share this question
or