multiline textfield character limitations?

  • Thread starter Thread starter Jerome
  • Start date Start date
J

Jerome

Hi,

Is it possible to limit the number of characters entered into a
MultiLine asp.net text field? And if yes, how?

'MAXLENGTH' works with SingleLine text fields, but not with MultiLine
ones ...

Thanks a lot.

Jerome
 
Multiline fields are not limited by the MAXLENGTH property. For more
reference look at the TEXTAREA HTML Specification. You can attach a
client side script to handle the Key press events and discard those that
are above your maxlength. Also make sure that you revalidate it during
postback. Users will like your application better if you tell them in
advance as to how much they can type as well as giving them realtime
information instead of waiting for them to submit the form and then
informing them about the error.

Regards,

Trevor Benedict R
MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top