DNK has a spanking new server up and running like clockwork. Stability problems are a thing of the past. Our new monitoring service reports 100% uptime since the move!
43
kicks
published 1 year, 11 months ago, submitted by k000der 1 year, 11 months ago

encosia.com — Replace those UpdatePanels with WebMethods and JSON.

Add a comment 5 comments | category: | Views: 48 | Get KickIt image code
Why ASP.NET AJAX UpdatePanels are dangerous
tags: , , , | tag it

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:
870 some bytes of text vs 24 bytes of text....ok.

But with HTTP compression, and given that text compresses down hugely, is it really such a big deal?

I just tested a 900 byte random text file and compressed it with standard WinZip. It brings it down to < 20 bytes.

Even if you had 100 update panels that generate 900 bytes of AJAX repsonse, you're only up to 2k of data. Is it really worth it?
posted by JudahGabriel JudahGabriel 1 year, 11 months ago
The ViewState is already compressed. You won't achieve anywhere near that kind of result compressing the ViewState. I'd be surprised if you compressed it even an additional 10%, best case.
posted by gt1329a gt1329a 1 year, 11 months ago
The JSON response would get compressed too...
posted by datacom 1 year, 11 months ago
Yes, but at 24 bytes, the compression dictionary would be pure overhead, and would actually add to the size of the download.
posted by JudahGabriel JudahGabriel 1 year, 11 months ago
No offense, but you're missing the point.

The majority of ASP.NET applications that you'll find online have relatively massive viewstates (though, I've noticed that dotnetkicks has a very lean viewstate. way to go, guys). Even if you can compress all of the response HTML to negligible sizes using gzip, the viewstate round-trip alone is usually significant enough to try to avoid when not necessary.

You're also ignoring the performance cost of reinstantiating all of the controls and running them through their life-cycle in order to render the UpdatePanel's HTML.

Compounded across a respectably sized user base, the savings are absolutely worthwhile. Especially given how easy web methods are to implement.
posted by gt1329a gt1329a 1 year, 11 months ago



information Login or create an account to comment on this story

Related Stories:
 

Search: