how to count textbox character and show message

Posted by Shanky11 under Interview Questions on 2/11/2013 | Points: 10 | Views : 2730 | Status : [Member] | Replies : 2
i have a textbox and i wants that on writting into it we can write only 120 characteand and a label should be there for counting




Responses

Posted by: Murugavelmsc on: 2/11/2013 [Member] Starter | Points: 25

Up
0
Down
TextBox1.Text.Trim().Length

Regards,
Murugavel S
murugavel.sadagopan@gmail.com
http://murugavelmsc.blogspot.in/

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

Posted by: Vforvijay on: 2/11/2013 [Member] Starter | Points: 25

Up
0
Down
Hi..
You can refer the below link to show balance character count using textbox and label control
http://www.dotnetcode.in/2012/04/display-characters-counter-for.html

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

Login to post response