473,473 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ICallbackEventHandler is it really asynch?

I am implementing this interface in one of my pages. The
RaiseCallbackEvent method runs a task for about 3 seconds. I've
noticed when I am on that page and click a tab to navigate to another
page, it may take up to 3 seconds to redirect. If I decrease the time
to 500 ms, the redirect happens much faster.
So it seems like this asynch task is not really asynch, since the
redirect is waiting for it to complete. Am I misunderstanding
something here?
(btw, the asynch task does work, no exceptions thrown).

Thanks,
Emily

Oct 27 '06 #1
4 1848
all requests to the server are async. the number of concurrent requests is
limited. generally browsers limit themselves to 2-4 concurrent requests
(ajax calls are seen by the browser as a request). but if you are using
session, then asp.net serializes requests (async, but run thru a queue).

-- bruce (sqlwork.com)

"EM_J" <ja*****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
>I am implementing this interface in one of my pages. The
RaiseCallbackEvent method runs a task for about 3 seconds. I've
noticed when I am on that page and click a tab to navigate to another
page, it may take up to 3 seconds to redirect. If I decrease the time
to 500 ms, the redirect happens much faster.
So it seems like this asynch task is not really asynch, since the
redirect is waiting for it to complete. Am I misunderstanding
something here?
(btw, the asynch task does work, no exceptions thrown).

Thanks,
Emily

Oct 27 '06 #2
Hi Bruce,
Thanks for your response. Seems like I need to understand the
browser/IIS plumbing a bit more.
Is it possible for the browser to issue another request while the
callback request is still processing? If it can handle 2-4 concurrent
requests, then it seems like it would, but the behavior proves
otherwise.
So sending an ajax request blocks the request thread and therefore the
browser cannot send another request until it is freed up, do I have
this right?

bruce barker (sqlwork.com) wrote:
all requests to the server are async. the number of concurrent requests is
limited. generally browsers limit themselves to 2-4 concurrent requests
(ajax calls are seen by the browser as a request). but if you are using
session, then asp.net serializes requests (async, but run thru a queue).

-- bruce (sqlwork.com)

"EM_J" <ja*****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
I am implementing this interface in one of my pages. The
RaiseCallbackEvent method runs a task for about 3 seconds. I've
noticed when I am on that page and click a tab to navigate to another
page, it may take up to 3 seconds to redirect. If I decrease the time
to 500 ms, the redirect happens much faster.
So it seems like this asynch task is not really asynch, since the
redirect is waiting for it to complete. Am I misunderstanding
something here?
(btw, the asynch task does work, no exceptions thrown).

Thanks,
Emily
Oct 27 '06 #3
The browser is normally capable of sending more than one request while one is
still executing.
So for example if you had one remote scripting (XMLHTTP) request with a
callback that takes some time, and a shorter one is issued during this
period, the shorter one should return, and then the longer one too.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"EM_J" wrote:
Hi Bruce,
Thanks for your response. Seems like I need to understand the
browser/IIS plumbing a bit more.
Is it possible for the browser to issue another request while the
callback request is still processing? If it can handle 2-4 concurrent
requests, then it seems like it would, but the behavior proves
otherwise.
So sending an ajax request blocks the request thread and therefore the
browser cannot send another request until it is freed up, do I have
this right?

bruce barker (sqlwork.com) wrote:
all requests to the server are async. the number of concurrent requests is
limited. generally browsers limit themselves to 2-4 concurrent requests
(ajax calls are seen by the browser as a request). but if you are using
session, then asp.net serializes requests (async, but run thru a queue).

-- bruce (sqlwork.com)

"EM_J" <ja*****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
>I am implementing this interface in one of my pages. The
RaiseCallbackEvent method runs a task for about 3 seconds. I've
noticed when I am on that page and click a tab to navigate to another
page, it may take up to 3 seconds to redirect. If I decrease the time
to 500 ms, the redirect happens much faster.
So it seems like this asynch task is not really asynch, since the
redirect is waiting for it to complete. Am I misunderstanding
something here?
(btw, the asynch task does work, no exceptions thrown).
>
Thanks,
Emily
>

Oct 27 '06 #4
Hi Peter,
This makes sense now with my web application. Do you know of any
articles that explains this in more detail?

Thanks.

Peter wrote:
The browser is normally capable of sending more than one request while one is
still executing.
So for example if you had one remote scripting (XMLHTTP) request with a
callback that takes some time, and a shorter one is issued during this
period, the shorter one should return, and then the longer one too.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"EM_J" wrote:
Hi Bruce,
Thanks for your response. Seems like I need to understand the
browser/IIS plumbing a bit more.
Is it possible for the browser to issue another request while the
callback request is still processing? If it can handle 2-4 concurrent
requests, then it seems like it would, but the behavior proves
otherwise.
So sending an ajax request blocks the request thread and therefore the
browser cannot send another request until it is freed up, do I have
this right?

bruce barker (sqlwork.com) wrote:
all requests to the server are async. the number of concurrent requests is
limited. generally browsers limit themselves to 2-4 concurrent requests
(ajax calls are seen by the browser as a request). but if you are using
session, then asp.net serializes requests (async, but run thru a queue).
>
-- bruce (sqlwork.com)
>
"EM_J" <ja*****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
I am implementing this interface in one of my pages. The
RaiseCallbackEvent method runs a task for about 3 seconds. I've
noticed when I am on that page and click a tab to navigate to another
page, it may take up to 3 seconds to redirect. If I decrease the time
to 500 ms, the redirect happens much faster.
So it seems like this asynch task is not really asynch, since the
redirect is waiting for it to complete. Am I misunderstanding
something here?
(btw, the asynch task does work, no exceptions thrown).

Thanks,
Emily
Oct 30 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike | last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta; frameworkv2.0.50215 ) the source code below I get errors (listed below due to the use of ICallBackEventHandler. Ultimately I...
2
by: Maya Nasri | last post by:
Hello everyone, I have upgraded to ASP.NET 2 and since then i had the code below stopped working after upgrading and modiftying the code: using System; using System.Data; using...
2
by: ghost | last post by:
As the Subject indicates I have written a web page that makes use of several web service calls. Some of the web service calls are very fast so they called synchronously. Some web service calls...
1
by: JimGreen | last post by:
I recently installed Release Candidate of VS2005 and I am not sure what the hell is the problem but ICallbackEventHandler definition on my machine looks like this: public interface...
3
by: Harvey Triana | last post by:
Hello I try to implement ICallbackEventHandler follow sample in http://msdn2.microsoft.com/en-us/library/ms178208.aspx I add code line: Implements System.Web.UI.ICallbackEventHandler The...
0
by: Slim | last post by:
I made a page today that uses ICallbackEventHandler. I got to work, but with problems. 1. it is slow, it does not seem any faster than reloading the page. 2. the first time I fire the event it...
1
by: Ben Schumacher | last post by:
I have a page that implements ICallbackEventHandler. I'm trying to accomplish auto saving a page everytime the user navigates away from the page. To initialize the callback, I fire the onunload...
1
by: =?Utf-8?B?RGF2aWQgUmVoYWdlbg==?= | last post by:
I currently have a custom control that implements the ICallbackEventHandler interface. Currently it works when the control is added to a standard web form. It does not work however when added to...
1
by: Ian | last post by:
Question: Is there a way to multi-thread ICallbackEventHandler using delegates? Problem: I'm executing client-side calls to my page, which implements ICallbackEventHandler. I need to implement...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.