Last post Aug 20, 2010 07:05 AM by Deleo
Aug 17, 2010 07:29 AM|pankajpmhatre|LINK
What should be the approach while designing when you know that your page would take considerable time to load? e.g. if it has controls which are heavy & some which are lighter? Can we make use of any of the design patterns to solve this issue?
Aug 17, 2010 07:50 AM|tanatrajan|LINK
You may use Application and Session object as well as Caching. Best practice would be create a class wrapping your requirements and initialize them in Application_Start or Session_Start events. Its recommended to have minimum of 2 classes so that you can
address application wide and user specific data. for page specific you may use object caching.
Aug 17, 2010 07:32 PM|madugulad|LINK
You can follow different appraoches for example:
You can categorize the page in to different tabs.
You can load a user controls dynamically in each tab on the tab click.
Inside these usercontrols you can keep your controls.
You can make use of caching.
Dispose the heavy objects immediately, if no longer useful. Transactions time to be reduced for database interactions, by following some best practices. Also you can choose the lightweight controls, for example if you want to diplay a simple table you can
choose repeater instead of grid(which is heavy weight compared to repeater), or some places you can make use of HTML controls instead of ASP.Net controls, etc.
Approach will differ depending on your requirement.
Aug 18, 2010 10:47 AM|atconway|LINK
What should be the approach while designing when you know that your page would take considerable time to load?
If it is strictly about loading controls there are several options you have to reduce page load times.
However if this is more about how to speed up responsiveness of pages in general you might want to look at Asynchronous Pages in ASP.NET. The below details how this can help speed up responsiveness of your pages:
Asynchronous Pages in ASP.NET 2.0:
Aug 20, 2010 07:05 AM|Deleo|LINK
Each usercontrol should be async, which means that they update itself independantly from the main page. think of this as webparts.
the main page loads almost instantly, and the usercontrols load asynchronous as time goes by :)
This way, the light controls populate quick and the heavier ones doesnt hold back the rest :)
Async can be done by JQuery or ASP .NET techology...its not hard to search up articles by this topic :)