SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created an Multiline textbox and need to define the MaxLength on it. I have read that we can use javascript to solve it but since I am new in JavaScript so maybe someone can help me?

<asp:TextBox ID="TextBoxContents" runat="server" TextMode="MultiLine"></asp:TextBox>

If Someone send me and javascript to solve it were should i put the script and what should i also write in my textbox, Thanks!

share|improve this question

I down voted your question because first search in google returns this link.

share|improve this answer
Agreed, you are better off googling for an answer, such as "javascript multiline", and you will SEE you answers, rather than waiting for a reply. StackExchange is for answers that are NOT answered by a simple Google search. – CigarDoug Jan 22 '13 at 12:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.