jQuery and ASP.NET drop down problem

Posted by Sayem Ahmed on Stack Overflow See other posts from Stack Overflow or by Sayem Ahmed
Published on 2010-05-10T08:27:19Z Indexed on 2010/05/10 8:34 UTC
Read the original article Hit count: 302

Filed under:
|
|
|
|

I have a drop down in an ASP.NET page. Whenever the value of the drop down changes an ASP.NET AJAX request is made to the server. I also attached a jQuery "change" event handler to that list to execute some code when the value is changed. So, probably two different event handlers are being attached to the same drop down, and it's causing some problems, i.e., sometimes wrong drop down values are sent to the server. I don't know why is this happening but I think attaching two different event handlers to a same drop down may be the reason.

Can anyone tell me what is the problem here? If what I guessed is true, then is there any other way to execute some custom javascript code before asp.net AJAX request is sent ?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about AJAX