How To Delayed Load Usercontrol which have Ajaxtoolkit control inside

Last post 09-19-2009 5:15 PM by rfurdzik. 3 replies.

Sort Posts:

  • How To Delayed Load Usercontrol which have Ajaxtoolkit control inside

    07-04-2009, 7:19 AM
    • Member
      point Member
    • sanil
    • Member since 12-28-2008, 3:46 PM
    • Posts 7

    Hi,

    I have a usercontrol which contains an update panel and some server control with it.Now i have to some how dynamically load this usercontrol to an aspx page.aspx page consists of nothing other than a scriptmanager control.i tried using server.execute to load user control but this only work when i remove the ajax toolkit control from the usercontrol. And the reason i guess is because when server.execute try to render the usercontrol it throws error when it sees an toolkit control it stop rendering and return nothing bcz thers no scriptmanager refered in the usercontrol.

    Do any one have solution for this or any quick tip just to help me Smile

    Thanks

    Sanil

     

  • Re: How To Delayed Load Usercontrol which have Ajaxtoolkit control inside

    07-06-2009, 11:41 PM

    Hi Sanil,

    We can simply use the LoadControl method to achieve this goal.

    Please refer to these two theads:
    http://forums.asp.net/p/1351970/2771250.aspx#2771250
    http://forums.asp.net/p/1373086/2886327.aspx#2886327

    Best regards,

    Zhi-Qiang Ni

    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as
    Answer” if a marked post does not actually answer your question.
  • Re: How To Delayed Load Usercontrol which have Ajaxtoolkit control inside

    07-07-2009, 2:00 AM
    • Member
      point Member
    • sanil
    • Member since 12-28-2008, 3:46 PM
    • Posts 7

     Hi Zhi-Qiang,

    Thanks for replying back but i wonder if this work if i use LoadControl inside a webservice.currently i achieved it by using a invisible button which is clicked by javascript timer and i put every thing inside updatepanels.i have lot of data in the page so when i do this it is making very much overhead to the server(please see www.zikbay.com and see how the tabs are loading).And i belive its not a good idea to use updatepanel update like the way i did.it will work but not a good solution i guess.so i want it to load these usercontrols individually, currently with the updatepanel update what  happens in the background is full round trip this is not good in my case.

    Can you help me with this

     

    Thanks

    Sanil

  • Re: How To Delayed Load Usercontrol which have Ajaxtoolkit control inside

    09-19-2009, 5:15 PM
    • Contributor
      3,429 point Contributor
    • rfurdzik
    • Member since 07-01-2002, 2:32 PM
    • zikbay.com
    • Posts 1,721
Page 1 of 1 (4 items)