Performance with ASP.NET AJAX Client Repeater - Using StringBuilder(hockblogs.net)
submitted by
hockman(505) 3 years, 5 months ago
Hi there,
In my series of 'Performance with ASP.NET AJAX & Client Repeater Control', which I started last week, it's time for part 2, namely: Performance with ASP.NET AJAX & Client Repeater Control - Part 2 - Using StringBuilder.
These are the following articles that I will soon be writing about or already have written about:
* Performance with ASP.NET AJAX & Repeater Server Control - Part 1 - The Updatepanel
* Performance with ASP.NET AJAX & Client Repeater Control - Part 3 - DOM Create element
* Performance with ASP.NET AJAX & Client Repeater Control - Part 4 - String Concatenation
Things in this solution are a little bit different compared to the Server side Repeater control and updatepanel approach.
These are the things I have done (which can be seen when you download the source files below):
1. Setting up a page with a generate data button to retrieve a set of 3000 person records
2. Setting up a local webservice that will get the data (could have been a PageMethod).
3. Invoking the webservice from client script
4. Cathing the results and build a client repeater using the StringBuilder.
When invoking the 'Generate data button', a client side script is invoked, that on its turn will call the local webservice, which was referenced as a script resource in the scriptmanager. The local webservice is called that returns the 3000 person records (I wanted a large resultset, so you could see that the performance issues arise when using an updatepanel as in my previous post). When the data was retrieved from the local webservice it is handled in client script by making use of the StringBuilder (from the AJAX library Sys.StringBuilder).
|category: AJAX
|Views: 47
tags:
AJAX another
Everyones tags:
Your Tags: