ASP.NET Textbox's Textchanged event not firing

HI Experts,

I have a textbox that ahs autopostback true and handles onchange event. It works fine. But here is the scenario:

firts i type a number in textbox(Let's say 4) and tab out, it fires the event.

Now, i change number using javascript  to let's say 5 it won't fine. perfectly fine

Now, I change number back to 4, the event should fire, but it does not.

I .net generates some JS code that keep track of whether value in textbox has changed but i think it only keeps track when u tab out not when u change value using JS.

What can i do then?

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.

Alfred A.Commented:

You can try doing a workaround on this one by doing a postback server-side using javascript after changing the number back something like the following for example,

document.forms(0).submit() in javascript

I hope this helps.
Jignesh1507Author Commented:
Hi Alfred,
The textchanged event is fired in updatepanel as a AJAX call. Then I get the return value from AJAX call and examine it and i fi don't find the expected result, I open a new window using javascript.

Is there any way I can trigger the change in textbox using javascript programatically so that .Net generated javascript code recognize it and fire the textchanged event?
Alfred A.Commented:

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
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

From novice to tech pro — start learning today.