Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...