AJAX textchange event then click event
-
Hi, I'm using AJAX. I have a textbox and a button inside an updatepanel. I have textboxtext changed event for the textbox and a click event for the button. When I input a text inside the textbox without removing the cursor inside it then click the button, and perform debug, only the textchange event gets executed, while it doesn't execute code inside click event. Please help. I can't simply force call click event inside textchange event of my textbox. Thank you.
Gerri
-
Hi, I'm using AJAX. I have a textbox and a button inside an updatepanel. I have textboxtext changed event for the textbox and a click event for the button. When I input a text inside the textbox without removing the cursor inside it then click the button, and perform debug, only the textchange event gets executed, while it doesn't execute code inside click event. Please help. I can't simply force call click event inside textchange event of my textbox. Thank you.
Gerri
CandyMe wrote:
I'm using AJAX.
You're using ASP.NET AJAX - so you might get better answers by posting in the ASP.NET forum (no guarantees though...)
CandyMe wrote:
I have a textbox and a button inside an updatepanel.
The focus change (and thus, the textchange event) happens before the click, so that's what you'll get first. You might want to re-think your strategy a bit - why would you need a text change event when there's a perfectly good button to let you know when the user's done?
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?
-
CandyMe wrote:
I'm using AJAX.
You're using ASP.NET AJAX - so you might get better answers by posting in the ASP.NET forum (no guarantees though...)
CandyMe wrote:
I have a textbox and a button inside an updatepanel.
The focus change (and thus, the textchange event) happens before the click, so that's what you'll get first. You might want to re-think your strategy a bit - why would you need a text change event when there's a perfectly good button to let you know when the user's done?
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?