jQuery $(document).ready and UpdatePanels?

后端 未结 19 1540
庸人自扰
庸人自扰 2020-11-22 01:32

I\'m using jQuery to wire up some mouseover effects on elements that are inside an UpdatePanel. The events are bound in $(document).ready . For example:

19条回答
  •  故里飘歌
    2020-11-22 01:46

    My answer is based on all the expert comments above, but below is the following code that anyone can use to make sure on each postback and on each asynchronous postback the JavaScript code will still be executed.

    In my case, I had a user control within a page. Just paste the below code in your user control.

    
    

提交回复
热议问题