Concurrent Asynchronous Callbacks

A question for skilled asp.net experts. I spent a lot of time trying to find an answer or do it myself, but so far no luck.

ASP.NET Web Application. I plan to improve page load time to improve user experience. I want to defer page load sections using UpdatePanels. I can do one UpdatePanel update immediately after loading the page using a timer with a minimum interval. This works fine, but the steps begin by trying to do this with a few UpdatePanels. Basically, what happens is that all panels are updated, but sequentially, and not all at the same time.

Now I read that this is due to the fact that every async postback result matches a full-screen representation and prevents inconsistencies in representations of the asynchronous postbacks representation. In fact, they say that only the last callback will succeed, so I am fortunate that they are serialized, I think.

And now the big question is: did anyone find a way around it? In ASP.NET, if possible. This will be a VERY appreciated answer, probably not just for me.

Thanks, thanks, thanks (for a working answer :-)

+6
c # postback
source share
1 answer

UpdatePanels are synchronous in design.

If you want to execute multiple requests at once, you need to use page methods, AJAX services, or raw AJAX. In any case, this means giving up ViewState.

If you want to simultaneously display ASP.Net controls for multiple AJAX requests, you can create small independent ASPX files containing controls, send AJAX requests, and embed the displayed HTML in the DOM. In jQuery, you will do it like this: $('selector').load('something.aspx') . Please note that neither postbacks nor viewstate will work.

+5
source share

All Articles