You probably know that there is no maxlength
for the textarea
by the HTML
specification. We had implemented our, based on the .length
of the value of the textarea. The problem is that the .length
can vary even in one browser, since it counts the \r\n
as 2 chars and \n
as one. But in the same text (if copied or set via JS) there could be both \n
In their latest versions, the browsers, are starting to validating the max length, and they are counting the new line as two chars during the submit. Since it is currently more consistent, we did a fix in our RadTextBox
control, and now if it is in multiline, we are also counting the new line as two characters.
I would suggest you to get the latest hotfix
and test it. It was fixed about two or tree weeks ago.
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed