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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak SainiRank #2,411 · 586 reputationPosted Apr 6, 2015, 4:49 AM EDT
If you set maximum lenght of your Textbox.you must not change the text property.you will increase your charter length.
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Apr 6, 2015, 5:53 AM EDT
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
Akhil GargRank #772 · 3K reputationPosted Apr 6, 2015, 7:29 AM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 6, 2015, 8:25 PM EDT
and add javascript attatched to your solution explorer
and add textbox
or visit
http://jsfiddle.net/timur/47a7A/
http://jsfiddle.net/technotarek/5Ymwb/
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 7, 2015, 2:00 AM EDT
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 7, 2015, 2:01 AM EDT
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 7, 2015, 2:03 AM EDT