c# - Javascript event like window.onload for subsequent loads -


we have function changes iframe height @ window.onload event can adjust page contents. problem after clicking in asp:menu height restored default , window.onload event doesnt fire...so need event fire in subsequent loads (tried window.unload didnt trigger)

the resize function cant called on asp:menu click because window wouldnt have finished loading height calculation fail...

any ideas??

asp.net ajax exposes client event model. execute code after content refreshed, use bind pageloaded event:

sys.webforms.pagerequestmanager.getinstance().add_pageloaded(pageloadedfunction); 

learn more of asp.net ajax javascript events here: http://msdn.microsoft.com/en-us/library/bb386417.aspx


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -