04-26-2011 07:40 AM
I'm using the built-in NumericControl to enforce users to enter only numeric data with FormatType set to "Number" to further restrict input.
Is there a way to restrict the length of the text entered? (Something like a MaxLength atribute). The reason I ask is that my fields are tied to smallints and even though a little error message will result in case the value entered is large, I would like to just restrict length initially.
04-29-2011 08:59 AM
allot of the properties available for SLX controls are not available at design time. On the forms Load Action you can use either a Code Snippet or C# Snippet and from there you can access the MaxLength property of the control. I haven't tested this property myself, but since the Currency control is just a wrapper on the native ASP.Net textbox control, it should work the same.