Web form text control field length and format
-
I cannot see where the validator controls allow me to validate a string length. I can enter too many characters in the control and the results cause my sql to hit the 'Catch' ....also having a hard time finding reference to formatting strings like social security numbers, phone numbers and etc. Date is handled with the date options well but can't seem to comprehend how to do a custom format of a string?? All help appreciated. JohnR
-
I cannot see where the validator controls allow me to validate a string length. I can enter too many characters in the control and the results cause my sql to hit the 'Catch' ....also having a hard time finding reference to formatting strings like social security numbers, phone numbers and etc. Date is handled with the date options well but can't seem to comprehend how to do a custom format of a string?? All help appreciated. JohnR
You can use the MaxLength property of TextBox in addition to the Validation Controls.
-
You can use the MaxLength property of TextBox in addition to the Validation Controls.
Thanks for the heads up on the maxlength, any help on the formatting. I have seen references to the maskededit.control, string.format and cannot seem to find an easy way to display format, without parseing the string, nor create an input mask. All help appreciated. JohnR