Limiting Multiline textbox

  • Thread starter Thread starter Neven Klofutar
  • Start date Start date
N

Neven Klofutar

Hi,

Is there a way to limit this field, because "maxlength" seems to be working
only for singleline ?

thanx, Neven
 
Is there a way to limit this field, because "maxlength" seems to be
working
only for singleline ?
This is more of an HTML issue than a ASP.NET issue. A multiline textbox
renders as a TEXTAREA HTML element. This element has no maxlength property.
To limit the length of a multiline textbox you have to do this in the
postback handler. You can also use a java script function to validate the
length of a field client side.

Anders Norås
blog: http://dotnetjunkies.com/weblog/anoras/
 
I thought so, but why putting this property under textarea ...

Thanx, Neven
 

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