The problem is that multiline and maxlength don't work togheter.
It's or multiline or maxlength. You can put multiline and a maxlength but the maxlength propertie then stops working!
I've just made a validation afterwards before writing to the database. It looks like this
If txtOmschrijving.Text.Length > 175 Then
lblTekens.Visible = True
lblTekens.Text = "Geef minder dan 175 tekens in a.u.b."
Exit Sub
Else
where lblTekens is a sort of errorfield like a validator field
it is hidden afterwards, when the field is validated again and has less then 175 characters.
When I set the MultiLine property to true & changed the number
in the Maxlength property, it restricted the number of characters,
regardless of the MultiLine property being true.
Where exactly do you have the validation code?
ailzaj
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.