Gertie Posted May 20, 2003 Posted May 20, 2003 Txtbox with multiline --> & MAXLENGTH? Is it possible to make the textbox's maxlength set to a value you like when you use multiline? If not i think that's not at all handy, specialy not when using a database. Can someone help? Quote
ailzaj Posted May 20, 2003 Posted May 20, 2003 There is a MaxLength property. Have you tried that? ailzaj Quote
Gertie Posted May 22, 2003 Author Posted May 22, 2003 jup 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. Greetz Quote
ailzaj Posted May 22, 2003 Posted May 22, 2003 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.