The whole page is made with Microsoft's AJAX framework, under the spit groove, to maintain the project that someone else did before the egg hurts.
Today to repeater with JS write a hover event
<Scripttype= "Text/javascript"> $(function(){ $('. Trhead'). Click (function(){ $( This). Next ('. Trcontent'). Find ('. Divcontent'). Slidetoggle ('Fast'); }); $('. Trhead'). Hover (function(){$( This). CSS ("background",'RGB (215,215,215)');}, function(){$( This). CSS ("background",'#fff');} ); }) </Script>
Results repeater turned to the second page, the effect is invalid, that is, JS has not.
At this time, it was
protected void Aspnetpager3_pagechanged (object sender, EventArgs e) { binddata (); // re-register JS event after binding data " AA " " AA () " true ); }
and this AA () function, of course, is:
<Scripttype= "Text/javascript"> functionAA () {$ ('. Trhead'). Click (function(){ $( This). Next ('. Trcontent'). Find ('. Divcontent'). Slidetoggle ('Fast'); }); $('. Trhead'). Hover (function(){$( This). CSS ("background",'RGB (215,215,215)');}, function(){$( This). CSS ("background",'#fff');} ); } </Script>
That is, the onload to execute the JS, put in a Method AA (), after the paging binding data, re-register a bit.
Similarly, when another control is returned, it needs to be re-registered.