I know this is an old post, but I have been trying to find a decent workaround and this has popped up a few times. This workaround is not very functional. When you get to the limit it doesn't let you do anything else...no backspace, up, down, etc.
Well if you google their are loads of javascript fixes out there, sorry never tried the version you mention but maybe this one at codeproject might be more what you are after.
Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
codegod.de
Member
152 Points
42 Posts
ASP:TextBox MultiLine and MaxLength workaround
May 18, 2007 07:18 PM|LINK
This little hack shows how to workaround the "bug", that the MaxLength-property in ASP:TextBox has no effect when it is Multiline:
http://www.codegod.de/WebAppCodeGod/aspnet-textbox-maxlength-in-multiline-mode-AID297.aspx
Bye and have fun,
Matthias
ASP.NET TextBox Javascript MultiLine MaxLength
www.codegod.de
mat1583
Member
17 Points
8 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Sep 18, 2007 03:38 PM|LINK
jeremyh
Star
8173 Points
1477 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Sep 18, 2007 05:30 PM|LINK
Well if you google their are loads of javascript fixes out there, sorry never tried the version you mention but maybe this one at codeproject might be more what you are after.
http://www.codeproject.com/useritems/Textarea_Length_Validator.asp?df=100&forumid=278964&exp=0&select=1412646
Let me know how you get on.
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
rajbk
Participant
1173 Points
132 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Oct 01, 2007 02:53 AM|LINK
I have a regex that does this:
http://weblogs.asp.net/rajbk/archive/2007/08/02/limiting-the-length-of-a-multiline-textbox.aspx
http://weblogs.asp.net/rajbk/
khurramatk2
Member
426 Points
81 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Aug 03, 2009 12:17 PM|LINK
Another simplet solution to the problem..
http://dotnetfocus.blogspot.com/2009/08/systemwebuiwebcontrolstextbox-maxlength.html
K2.Net Workflows
Dot Net Focus
Remember to Mark as "Answer" if this helped.
hinaAsp.Net
Member
246 Points
125 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Aug 04, 2009 10:05 AM|LINK
I used this link. This one is very simple and working on my page.
http://weblogs.asp.net/rajbk/archive/2007/08/02/limiting-the-length-of-a-multiline-textbox.aspx
If my reply helped you, dont forget to mark it as "Answer"