How to count character of TextBox in ASP.NET

Posted by Rahmankhan under ASP.NET on 6/10/2013 | Points: 10 | Views : 10314 | Status : [Member] | Replies : 3
How to count character of TextBox in ASP.NET


ex : i want enter 140 character in one textbox while i start my work character want reduce




Responses

Posted by: Raj.Trivedi on: 6/10/2013 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hello

You can achieve this by using Jquery

http://www.yourinspirationweb.com/en/jquery-tips-tricks-how-to-limit-characters-inside-a-textarea/

Download the plugin from here.

Here is the demo

http://www.yourinspirationweb.com/example/maurizio/textarea/textarea_plugin2.html

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved

Rahmankhan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja_89 on: 6/11/2013 [Member] Starter | Points: 25

Up
0
Down
Hai Techie


You can achieve this length property of a text box

Code:

int a = nametxtbx.Text.Length; // Textbox to be count
filepathtxt.Text = Convert.ToString(a).ToString(); //Result shown to another textbox



Regards


Rahmankhan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rahmankhan on: 6/11/2013 [Member] Starter | Points: 25

Up
0
Down
thnks
RajTrivedi

Rahmankhan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response