Solved

MultiLine TextBox limit number of characters vb.net asp.net

Posted on 2007-12-06
4
4,782 Views
Last Modified: 2008-02-01
Need to know how to limit the number of characters a user can enter in a MulitLine textbox and display a countdown.  I assume I will need to use Javascript but have no experience with it.  Basically I would like to:

1 - Limit the text entry in a multiline textbox to 1500 characters and
2 - Provide a countdown below the textbox so that the user will know when it is time to get to the point and finish typing.

Any help will be greatly appreciated.  Put max num of points because I need a solution pretty quick.
0
Comment
Question by:mamcw
  • 2
4 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20424501
Use MaxLength property to limit the usuar to certain number of characters.
0
 
LVL 22

Accepted Solution

by:
RedKelvin earned 500 total points
ID: 20424519
0
 

Author Comment

by:mamcw
ID: 20424908
Hey guys, thanks for the quick responses.  Jaime, I've tried the MaxLength property but apparently it does not work with MultiLine TextBoxes.
RedKelvin, that seems to be what I am looking for.  I am going to try it out and I'll let you know how it goes.
0
 

Author Comment

by:mamcw
ID: 20430507
RedKelvin thanks for the link, that is exactly what I wanted.  

Thanks again,
Mamcw
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question