
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...
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?
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
0
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.
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?
Sorry for my ignorance, but how do i format it the value to retain the trailing zero on the server?
0
Accepted
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.
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!