Ask a Question related to ASP.NET General, Design and Development.
-
Mark #1
Limit to 150 characters in multi-line textbox
Can you limit the number of characters in a multi-line textbox? My tests in
indicate that the MaxLength property causes client side limits only on
single line textboxes.
Thanks in advance!
Mark
Mark Guest
-
Limit the Number of Characters Returned
I am running into a problem with a dynamically created Select Box being too wide due to the names included in it. How can I limit the length of the... -
Multi-line TextBox - Paste text with numbered list, bullet list, tab character
Hi All, I need a server control that's exactly like a multi-line TextBox, but also allow users to paste text with numbered list, bullet list, and... -
Limit off 255 characters
Hello! I have a Visual FoxPro table with Memos fields, and when i insert into the table a value that cames from a TEXTAREA field on a form, give me... -
Textarea - Limit Amount of Characters?
"Ralph Freshour" <ralph@primemail.com> wrote in message news:cr6bkvc5rsi9o355ff50c7746iu0omq6kk@4ax.com... I suspect *limiting* the amount of... -
>4000 characters in a TextBox
I'm having the same problem. Basically, what I need to know is - Can I move more than 4000 characters from a TextBox in a Web Form to a string? If... -
Marina #2
Re: Limit to 150 characters in multi-line textbox
If this doesn't work on multiline textboxes, you will have to write
javascript to handle the onkeydown event or something like that, to prevent
the user from entering more then 150 characters.
"Mark" <field027_nospam_@umn.edu> wrote in message
news:uSyVxzoWDHA.536@TK2MSFTNGP10.phx.gbl...in> Can you limit the number of characters in a multi-line textbox? My tests> indicate that the MaxLength property causes client side limits only on
> single line textboxes.
>
> Thanks in advance!
>
> Mark
>
>
Marina Guest
-
Michal A. Valasek #3
Re: Limit to 150 characters in multi-line textbox
| Can you limit the number of characters in a multi-line textbox? My tests
in
| indicate that the MaxLength property causes client side limits only on
| single line textboxes.
You cannot. Recommended way is to use validator.
--
Michal A. Valasek, Altair Communications, [url]http://www.altaircom.net[/url]
Please do not reply to this e-mail, for contact see [url]http://www.rider.cz[/url]
Michal A. Valasek Guest
-
S. Justin Gengo #4
Re: Limit to 150 characters in multi-line textbox
Mark,
It is documented that MaxLength only works while a text box is in single
line mode.
However, you may use a regular expression validator to control the length
of the text box. I have sample code for this on my web site:
[url]www.aboutfortunate.com[/url]. Just go to the code library and search for: "text
area length validation".
I hope this helps.
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Mark" <field027_nospam_@umn.edu> wrote in message
news:uSyVxzoWDHA.536@TK2MSFTNGP10.phx.gbl...in> Can you limit the number of characters in a multi-line textbox? My tests> indicate that the MaxLength property causes client side limits only on
> single line textboxes.
>
> Thanks in advance!
>
> Mark
>
>
S. Justin Gengo Guest
-
Sonali.NET[MVP] #5
Re: Limit to 150 characters in multi-line textbox
Take a look @ Recent tips and tricks Validating MaxLength of the TextArea using CustomValidator Topic:[url]http://www.aspnet101.com/aspnet101/tips.aspx[/url]
"Mark" <field027_nospam_@umn.edu> wrote in message news:uSyVxzoWDHA.536@TK2MSFTNGP10.phx.gbl...> Can you limit the number of characters in a multi-line textbox? My tests in
> indicate that the MaxLength property causes client side limits only on
> single line textboxes.
>
> Thanks in advance!
>
> Mark
>
>Sonali.NET[MVP] Guest



Reply With Quote

