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

Home Posts Topics Members FAQ

ICallbackEventHandler - bottleneck?

Ian

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
processed while this runs in the background. What I've found so far,
though, is that any calls executed after the lengthy one seem to queue
up, and none of their callbacks are executed until the 1st method is
completed.

I am not familiar enough with the ICallbackEventHandler life-cycle
model nor async delegates to dig very far into it, so I might be
missing something obvious.

I haven't had much luck finding discussions of this issue. The best
resource I found so far is:
http://www.eggheadcafe.com/articles/20060918.asp, which states in part:
"Page class lifecycle completion is halted pending the return of all
async method calls"

Thanks,

Ian

Jan 3 '07 #1
1 1600
in general the browser only allows 2 (unless you make a change in the
registry) concurrent connections to the server. so, this may cause blocking.

asp.net if you use session queues requests also (1 at a time), so this
will cause blocking (and is probably what is causing your behavior).

you should not make a 30 second call, as this will lead to instablilty.
you should change the long call to two. one to starts the request (on a
seperate thread). and a second that polls for completion.
-- bruce (sqlwork.com)

Ian wrote:
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
processed while this runs in the background. What I've found so far,
though, is that any calls executed after the lengthy one seem to queue
up, and none of their callbacks are executed until the 1st method is
completed.

I am not familiar enough with the ICallbackEventHandler life-cycle
model nor async delegates to dig very far into it, so I might be
missing something obvious.

I haven't had much luck finding discussions of this issue. The best
resource I found so far is:
http://www.eggheadcafe.com/articles/20060918.asp, which states in part:
"Page class lifecycle completion is halted pending the return of all
async method calls"

Thanks,

Ian
Jan 4 '07 #2

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 in Visual Web Developer 2005 express beta (framework version )the source code using System; using System.Web.UI; using System.Web.UI.WebControls; using...
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...
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...
0
by: Edwin Knoppert | last post by:
Seems ICallbackEventHandler is meant for the 2.0 beta i guess ??? VWD forces me to public void RaiseCallbackEvent(string eventArgument) And using a public string GetCallbackResult() to return the...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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: 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: 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 ...

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.