Here is the method that is failing in RadMaskedTextBox.cs:
String RangeTextProperty(String value)
) && (value != String.Empty))
"Text property cannot be set. "
d = (MaxValue < d) ? MaxValue : d;
d = (MinValue > d) ? MinValue : d;
As you can see, if the text value coming from the post data cannot be parsed into double
type, the control throws the exception you are getting. As you can note, this method is virtual
, so you can make a custom numeric textbox class by inheriting RadNumericTextBox and overriding this method to not thrown an exception, or alternatively, do some other action against possible injection attacks.
All the best,
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.