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
 
Back
Top