how limit a asp:TexBox, with textmode set to multiline, a maxlenght value ?

Posted by gondar | Filed under , , ,

in a singleline textbox, is easy, just set the maxlenght value.. but when the textbox is set to multiline, all we no to do is go to source code and add the following to the asp:textbox tag:

 onkeypress='return (this.value.length <= 200);'

where the 200 is the maximum characters you want to allow users to write

hope it helps :)

Comments

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading