Performance with ASP.NET AJAX Client Repeater - Using StringBuilder(hockblogs.net)

submitted by hockmanhockman(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).

add a comment |category: |Views: 47

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story