Click here to Skip to main content
15,899,825 members
Articles / Web Development / ASP.NET

ASP.NET - Limit Number of Characters in TextBox Control

Rate me:
Please Sign up or sign in to vote.
4.00/5 (2 votes)
20 May 2010CPOL1 min read 40.5K   1   4  
Limit/count number of characters in ASP.NET TextBox control
I was revisiting JavaScript used to limit the number of characters in a TextBox control, but the problem with this script was that it did not work correctly with multiple TextBox controls on the web page and was not cross-browser compatible. In this post, I rewrite it to ease the mentioned problems.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
I have over 10 years of experience working with Microsoft technologies. I have earned my Microsoft Certified Technology Specialist (MCTS) certification. I'm a highly motivated self-starter with an aptitude for learning new skills quickly.

Comments and Discussions