473,765 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ICallbackEventH andler is it really asynch?

I am implementing this interface in one of my pages. The
RaiseCallbackEv ent 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 misunderstandin g
something here?
(btw, the asynch task does work, no exceptions thrown).

Thanks,
Emily

Oct 27 '06 #1
4 1876
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.goog legroups.com...
>I am implementing this interface in one of my pages. The
RaiseCallbackEv ent 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 misunderstandin g
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.goog legroups.com...
I am implementing this interface in one of my pages. The
RaiseCallbackEv ent 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 misunderstandin g
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.goog legroups.com...
>I am implementing this interface in one of my pages. The
RaiseCallbackEv ent 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 misunderstandin g
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.goog legroups.com...
I am implementing this interface in one of my pages. The
RaiseCallbackEv ent 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 misunderstandin g
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
567
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 want to use a callback from the client side to update webcontrols based on user input without using postback. I am seeking a way to stop the compile errors. using System; using System.Data;
2
3138
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 System.Configuration; using System.Collections; using System.Web;
2
1565
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 are longer running so I call them asynch so that they can all run concurrently. The user base for the application that I am creating demands the partial response of the faster calls and a gradual update of their web page info from the balance of...
1
1159
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 ICallbackEventHandler { string GetCallbackResult(); void RaiseCallbackEvent(string eventArgument); }
3
3263
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 IDE write this signatures:
0
979
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 works fine, I get a result back from the server, but if I try to fire it again too soon it does not work. Q. am I supposed to be able to rebuild controls with ICallbackEventHandler? I have a table built at loading, am I supposed to be able to...
1
2019
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 event on the window as can be seen below. <script type="text/javascript"> window.onunload = Save; function Save()
1
1685
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 Master Page’s Content Page or when placed in a user control. The result is the page load firing but the callback events never file. I have scoured the internet for days and seen literally dozens of questions to the same effect and no...
1
1617
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 ICallbackEventHandler in order to access the state of various 3rd party controls I'm working with. I have one method in particular which takes a long time to process, roughly 30 seconds or so. My goal is to allow other methods to be
0
10156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8831
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.