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.
Member
70 Points
11 Posts
ASP:TextBox MultiLine and MaxLength workaround
May 18, 2007 03:18 PM|codegod.de|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
None
0 Points
8 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Sep 18, 2007 11:38 AM|mat1583|LINK
Contributor
5190 Points
1469 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Sep 18, 2007 01:30 PM|jeremyh|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.
Member
210 Points
128 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Sep 30, 2007 10:53 PM|rajbk|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/
Member
292 Points
81 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Aug 03, 2009 08:17 AM|khurramatk2|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.
Member
132 Points
118 Posts
Re: ASP:TextBox MultiLine and MaxLength workaround
Aug 04, 2009 06:05 AM|hinaAsp.Net|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"