Limiting Multiline textbox

N

Neven Klofutar

Hi,

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

thanx, Neven
 
A

Anders Norås

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/
 
J

Joel Martinez

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

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top