Hi,
In rare cases, the value in an asp.TextBox validated by the RadinputManager as a Numeric Field, is showing commas on the Server Side...
On My Master Page I have:
Then in the code-behind I set:
Now, in rare cases, and only when i use the "NoCSSNumber" the textbox value server side will contain commas.
Example, on the user side, the text for tbMyTextBox is 1,000 and the text for tbMyTextBox2 is 1,000.
Then on the server side sometimes tbMyTextBox.Text is "1,000", but most of the time it is "1000". tbMyTextBox2 is ALWAYS "1000"
Why the discrepancy? What is the expected behavior? I expect it to always be "1000" on server side. And for most of my users the server-side value is 1000, but everyonce in a while it will make it to the server as 1,000 and throw an error...
Any help is appreciated.
Thanks
In rare cases, the value in an asp.TextBox validated by the RadinputManager as a Numeric Field, is showing commas on the Server Side...
On My Master Page I have:
<
telerik:RadInputManager
ID
=
"SharedInputManager"
runat
=
"server"
>
<
telerik:NumericTextBoxSetting
DecimalDigits
=
"0"
BehaviorID
=
"NoCSSNumber"
InitializeOnClient
=
"false"
ReadOnlyCssClass
=
"ReadOnlyStyleInputManager"
Validation-ValidateOnEvent
=
"Blur"
>
</
telerik:NumericTextBoxSetting
>
<
telerik:NumericTextBoxSetting
DecimalDigits
=
"0"
BehaviorID
=
"Number"
InitializeOnClient
=
"false"
ReadOnlyCssClass
=
"RIM_ReadOnly"
EnabledCssClass
=
"RIM_Width"
FocusedCssClass
=
"RIM_Width"
HoveredCssClass
=
"RIM_Width"
InvalidCssClass
=
"RIM_Width"
Validation-ValidateOnEvent
=
"Blur"
>
</
telerik:NumericTextBoxSetting
>
</
telerik:RadInputManager
>
//CSS is in external css file
.RIM_ReadOnly
{
background-color:#DEDEDE !important;
border-style:groove !important;
width:196px !important;
}
.RIM_Width
{
width:196px !important;
}
((NumericTextBoxSetting)SharedInputManager.GetSettingByBehaviorID(
"NoCSSNumber"
)).TargetControls.Add(
new
TargetInput(tbMyTextBox.UniqueID,
true
));
((NumericTextBoxSetting)SharedInputManager.GetSettingByBehaviorID(
"Number"
)).TargetControls.Add(
new
TargetInput(tbMyTextBox2.UniqueID,
true
));
Now, in rare cases, and only when i use the "NoCSSNumber" the textbox value server side will contain commas.
Example, on the user side, the text for tbMyTextBox is 1,000 and the text for tbMyTextBox2 is 1,000.
Then on the server side sometimes tbMyTextBox.Text is "1,000", but most of the time it is "1000". tbMyTextBox2 is ALWAYS "1000"
Why the discrepancy? What is the expected behavior? I expect it to always be "1000" on server side. And for most of my users the server-side value is 1000, but everyonce in a while it will make it to the server as 1,000 and throw an error...
Any help is appreciated.
Thanks