2
Vote

Implement minimum length validation

description

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.

comments

jnagy wrote Sep 22, 2008 at 8: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 22, 2008 at 11:37 PM

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

wrote Sep 24, 2008 at 9:48 PM

wrote Feb 13, 2013 at 11:13 PM