Text Changed Event

Does Text changed event work on ASP Pages. I want the event to be trigerred after i type in a character in a textbox. I have set the autopostback to true on the textbox but the event is only trigerred after i click on another control which will submit the form. I even tried registering the event at startup in javascript like tboContent.Attribute.Add("OnChange","return TxtChange();") but still diint work.
 protected void tboContent_TextChanged(object sender, EventArgs e)
    {
        if (tboCharacters.Text.Length <= 160)
        {
            tboCharacters.Text = Convert.ToString(160 - Convert.ToInt64(tboContent.Text.Length - 1));
        }
    }
Dawie de VilliersAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kerwinsiyCommented:
tboContent.Attribute.Add("OnBlur","return TxtChange();")
0
Dawie de VilliersAuthor Commented:
Hie, Thank you for your response but i didnt work, its just working the same as onchange, i will have to send a postback using other controls.

Thank you
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
prairiedogCommented:
Text Changed event fires with a full postback when the TextBox control looses its focus, in another word, when the cursor moves away from the TextBox to another control such as using Tab or clicking a button, etc.
0
Dawie de VilliersAuthor Commented:
Thank you very much guys,
I finally figured out how to solve this, the "onkeyup event" doesnt need a postback and its updating the other textbox perfectly without a postback.

Thnak you very much
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.