The objective is to set a maximum character length on the textarea, thus ensuring that the user's text input does not exceed the maximum allowable length. The end-user should also see exactly how much more text he or she can enter at all times in order to make edits unnecessary when the end is reached.
Add the following function to your JavaScript file:
Modify your Multiline Textbox (ASP.NET Web Control) or TextArea as follows (including a new row for a label):
The result should look as follows: