The LengthValidator validates that the length of a TextBox is within a certain range. You may enter a value for the minimum, maximum, or both lengths. You are also given the option of having an error message that states the minimum and maximum lengths generated.