Implement minimum length validation


Per the thread in discussions, since we're already tracking a desired minimum length, let's validate for that condition as well. Need to implement client and server side validation for ControlToValidate.Text.Length >= MinimumLength.


jnagy wrote Sep 22, 2008 at 9:32 PM

I think, it has been already implemented both on sever and client side.
On client side it is in the _onValidate method : this._controlToValidate.value.length >= this.get_MinimumLength()
On server side the IsUsernameAvailable method contains a check for
if(!string.IsNullOrEmpty(controlValidationValue) && controlValidationValue.Length >= MinimumLength)
But let me know if I am wrong.

Encosia wrote Sep 23, 2008 at 12:37 AM

What I mean is that we should consider a less-than-minimum-length situation to be invalid.

wrote Sep 24, 2008 at 10:48 PM

wrote Feb 14, 2013 at 12:13 AM