asp.net - css hover menu stops working after Update Panel renders elements -
i using <ul> <li> menu on master page. menu hover using csshover.htc file. <updatepanel> on child pages, when click on link or button inside update panel, menu stops working. i.e hover not work. can solution this?
you need re-initialise menu after updatepanel has fired. in order need include following @ bottom of page:
<script type="text/javascript"> sys.webforms.pagerequestmanager.getinstance().add_endrequest(csshover()); </script> you find name of function called @ top of htc file - see this:
<public:attach event="ondocumentready" onevent="csshover()" /> the function needs fired part in onevent
Comments
Post a Comment