Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: multiline property in txtbox, but max char not working.

Thread Tools

Re: multiline property in txtbox, but max char not working.

Kevin Spencer
Posts: n/a
Although ASP.Net uses the same class to display both a single-line textbox
(HTML input type=text) and a multi-line textbox (HTML textarea), they are 2
completely different HTML objects. An input type=text object has a maxLength
attribute; a textarea does not. The only way to restrict the length of data
in a textarea is with Validation.

Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Paul" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a text box and am using it for user input, string up to 50

> long. I want it to be multiline and have autowrap selected, but when I set
> the mode to multiline the entry seems to allow more than 50 characters. I
> have max char set to 50 in the properties box.
> thanks,
> --
> Paul G
> Software engineer.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
max size javascript validation on multiline textbox behaves differently in IE and FF write2atif Software 0 04-30-2009 08:15 AM
(const char *cp) and (char *p) are consistent type, (const char **cpp) and (char **pp) are not consistent lovecreatesbeauty C Programming 1 05-09-2006 08:01 AM
/usr/bin/ld: ../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x98): unresolvable relocation against symbol `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostre C++ 3 03-09-2006 12:14 AM
Label has not multiline property to set? enhung ASP .Net Web Controls 2 01-18-2006 06:38 PM
how to define a variable to hold a multiline text input in perl from html multiline textbox dale zhang Perl Misc 8 11-30-2004 06:53 AM