Click here to Skip to main content
15,922,427 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
I have update product page there are some textboxes are there which are already filled with some data from the database while loading.

In page load for 1st time there is a textarea which contain 3000 as its length of characters.when we enter some thing then the 3000 should be decrease by entering the characters.

So if i enter "abcde" means it should display 2995 like that but after page loading is happening again 3000 is coming and by enter its working fine means from the 2995 its starting and displaying only problem is that when page is loading date is there in all text fields then in that text area if data is "abcde" then in place of 3000 it should display 2995 and from then it has to decrease while increase the characters.

So what is the coding for that in c# or asp.net?

[edit]Code block removed for legibility - OriginalGriff[/edit]
Posted
Updated 12-Nov-10 19:24pm
v3

This is similar to the textboxes on many pages, e.g. Twitter has such a count down, too.

There are plenty of examples for that[^], I did this once, too, with a completely client-based solution (i.e. JavaScript). So no need for C# here.

Cheers
Uwe
 
Share this answer
 
Hi Vamsi,

Have a look on this. Demo & Sample of Text Area Counter.
Click Here[^]

This is JQuery(Open source JavaScript Library) Plugin. Just Download JQuery from here[^] & this plug-in.

its light weight & purely client side scripting. try it once.

Enjoy the stuff.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900