ajax delay load UserControl asp.net

Posted by user196202 on Stack Overflow See other posts from Stack Overflow or by user196202
Published on 2010-05-23T13:14:05Z Indexed on 2010/05/23 13:20 UTC
Read the original article Hit count: 457

regarding ajax delay load of usercontrols (or any controls) on Post at Encosia.com : http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/

I tried to implement it , but I noticed that it can be done only for simple controls or UserControls that Have simple asp.net controls (or html tags) .

But when it involved with advanced dynamic ajax control (like ajaxControlToolkit or Telerik controls) that have javascripts inside them This method of injecting the html code to the .InnerHtml property of div tag (for example) IS NOT WORKING , and I red about it that The browser need to load the script on load and after that it won't iterperate the scripts injectd via .InnerHtml.

So I attached here example of delay load project (from encosia.com by dave ward) with my modification (look at DefaultPopup.aspx and beforePopup.aspx and AfterPopup.aspx) Which I modified the RssReader to show listview with popup items (which is implemented via ACT HoverMenuExtender ) So in the regular way the popup items are shown right , but on the delay load which is done by creating virtual page for rendering the html and injecting it to .InnerHtml property –
This ISN'T WORKING.

So my question is : is there a way to do delay loading for controls which include scripts lik ACT and Telerik and others? And for the ajax templates – if I need to inject advanced control to the page – how I do it with your approach?

Thanks very much

(I can't attach here files so everyone please ask me by mail ([email protected]) and i'll send it to him. )

Zahi Kramer

© Stack Overflow or respective owner

Related posts about asp.net-ajax

Related posts about usercontrols