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!
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.
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.
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
is working on a reply...