Rank: Member Groups: Member
Joined: 12/5/2008 Posts: 27
|
I am using four callback panels on an asp page to accomplish my design goals, and have them grouped so they talk to each other. As I add more triggers thru asp.net controls and their methods I see the performance (response time for the callback) taking considerably longer. Do you have any documentation on relating to using multiple callbackpanels and triggers or can you offer any suggestions or things to look for in my code. All the controls have enabledviewstate turned off for the round trips.
My Thanks,
William E. Birt Sr. Sr. Software Engineer MedExpress Information Systems
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You may want to try to split them into multiple pages. A very common misperception is that AJAX improves application performance. Most of the time it does not. There are primarily two kind of AJAX solutions: Page based or Method based. Page based solutions, like our CallbackPanel, offers you the ability the update part of the page without reloading the whole page. However in order for it to be transparent to you, it has to maintain the state information for the whole page, not just the part that you are updating. For this reason, it is no different than reloading the whole page as to the amount of data to be posted back to the server. It does save some bandwidth when the server sends data back to the client, because instead of sending the whole page, the server would only send the updated region.
Method based AJAX solution works on individual method, so you do not have access to the page, nor any other controls in the page. Anything associated with page and control, such as properties, view state or server event will not be available. You can control what you posts back to the server with that approach but it is much more difficult to use because you have to take care of everything. This approach does improve performance but is much more coding on your part.
Thanks!
|