I have Remark textbox in my page with 1 to 500 char. size.
I want to show remaining words while I'm texting the words.
so How to show no. of char. remaining of Textbox while Texting?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gowtham RajamanickamPosted Apr 7, 2015, 6:03 AM
Gowtham RajamanickamPosted Apr 7, 2015, 6:01 AM
Gowtham RajamanickamPosted Apr 7, 2015, 6:00 AM
Khargesh RajputPosted Apr 7, 2015, 12:25 AM
and add javascript attatched to your solution explorer
and add textbox
or visit
http://jsfiddle.net/timur/47a7A/
http://jsfiddle.net/technotarek/5Ymwb/
Akhil GargPosted Apr 6, 2015, 11:29 AM
Pankaj Kumar ChoudharyPosted Apr 6, 2015, 9:53 AM
private void textBox1_TextChanged(object sender, EventArgs e)
{
label1.Text = (500 - textBox1.Text.Length).ToString();
}
for this you can use text changed property of textbox
Deepak SainiPosted Apr 6, 2015, 8:49 AM
If you set maximum lenght of your Textbox.you must not change the text property.you will increase your charter length.