Solved

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

Posted on 2007-12-06
4
4,779 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now