Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex 3 posts 23 karma points
    Sep 30, 2010 @ 10:44
    Alex
    0

    Multiple .net usercontrols on the page

    Hi everyone,

    I have a little performance problem, may be someone will have any idea about it...

    I have a page (template to be precise) and 3 .net usercontrols registered as macros (as usually). The controls are pretty standard, nothing fancy. The 3d control uses AJAX and updatepanels. Now (for the test purposes) it has just a button and label, on button click I put the current time in the label to see how fast it works (using AJAX updatepanels).

    The problem is that if there's only one usercontrol on the page (the one with AJAX) - it works fine, the update time is less than a second. Once I add one or both other usercontrols the speed is down significantly - from less than 1s to more than 3s for the simplest panel update.

    The only thing I can imaging is that upon AJAX update request (when I press the button on the third test control) umbraco re-loads two others (in UI this is not visible however). Both three controls are located in the same assembly. I would expect the controls to be 100% independent from each other on the page, but may be I am wrong? Any ideas welcome. Thanks!

     

    Alex.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 30, 2010 @ 11:32
    Ismail Mayat
    0

    Alex,

    In asp.net ajax a partial post back will post the whole page including viewstate back to the server even though you may only be updating a part of the page hence the heavy load.  I recall from codegarden09 the demo for http://our.umbraco.org/projects/widgetframework which addressed this issue in a unique way you will have to request the source to see how they got round this issue.

    Regards

     

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft