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

Home Posts Topics Members FAQ

RegisterAsyncTask & PageAsyncTask

Has anyone here implemented RegisterAsyncTask and PageAsyncTask to improve
page performance on page databinding? The only samples I've been able to
find on this involve using asynchronous operations to run database tasks or
web service calls, both of which make implicit use of IAsyncResult.

I just want to asyncronously run some databinding code on different parts of
my page. Am I going in the wrong direction?
Feb 13 '07 #1
4 6026
just remember that the async processing is happening while you build the
html to return. it must all complete before page render (or prerender)
and you must put in code to wait for completetion before these events.

-- bruce (sqlwork.com)

Random wrote:
Has anyone here implemented RegisterAsyncTask and PageAsyncTask to improve
page performance on page databinding? The only samples I've been able to
find on this involve using asynchronous operations to run database tasks or
web service calls, both of which make implicit use of IAsyncResult.

I just want to asyncronously run some databinding code on different parts of
my page. Am I going in the wrong direction?

Feb 13 '07 #2
As Bruce indicated, I doubt it would be of much value as page processing is
halted until ALL the async tasks complete (or time out). Now if you are doing
multiple database calls in parallel, that could be a possibility.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Random" wrote:
Has anyone here implemented RegisterAsyncTask and PageAsyncTask to improve
page performance on page databinding? The only samples I've been able to
find on this involve using asynchronous operations to run database tasks or
web service calls, both of which make implicit use of IAsyncResult.

I just want to asyncronously run some databinding code on different parts of
my page. Am I going in the wrong direction?
Feb 13 '07 #3
Oh, well. I read your article, Peter, on asyncronous processing, by the
way. I was really hoping to find a way to get the page processing done
asyncronously. I thought I'd found a magic bullet to doing that, but if the
async processing can only be optimized for non-page tasks, it looks like
I'll have to get more creative in finding my solution.
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:FC**********************************@microsof t.com...
As Bruce indicated, I doubt it would be of much value as page processing
is
halted until ALL the async tasks complete (or time out). Now if you are
doing
multiple database calls in parallel, that could be a possibility.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Random" wrote:
>Has anyone here implemented RegisterAsyncTask and PageAsyncTask to
improve
page performance on page databinding? The only samples I've been able to
find on this involve using asynchronous operations to run database tasks
or
web service calls, both of which make implicit use of IAsyncResult.

I just want to asyncronously run some databinding code on different parts
of
my page. Am I going in the wrong direction?

Feb 13 '07 #4
Hi,

The RegisterAsyncTask method does not provide the option for parallel
processing. I am not sure what is the use of this concept.

"Random" wrote:
Oh, well. I read your article, Peter, on asyncronous processing, by the
way. I was really hoping to find a way to get the page processing done
asyncronously. I thought I'd found a magic bullet to doing that, but if the
async processing can only be optimized for non-page tasks, it looks like
I'll have to get more creative in finding my solution.
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:FC**********************************@microsof t.com...
As Bruce indicated, I doubt it would be of much value as page processing
is
halted until ALL the async tasks complete (or time out). Now if you are
doing
multiple database calls in parallel, that could be a possibility.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Random" wrote:
Has anyone here implemented RegisterAsyncTask and PageAsyncTask to
improve
page performance on page databinding? The only samples I've been able to
find on this involve using asynchronous operations to run database tasks
or
web service calls, both of which make implicit use of IAsyncResult.

I just want to asyncronously run some databinding code on different parts
of
my page. Am I going in the wrong direction?


May 2 '07 #5

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

Similar topics

9
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
0
by: DotnetShadow | last post by:
Hi All, Has anyone used the asp.net 2.0 RegisterAsyncTask as seen in these sample code: http://msdn2.microsoft.com/system.web.ui.pageasynctask.aspx...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
7
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get...
2
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm using an async page to kick off a couple of asynchronous web services using the PageAsyncTask class. I'm also testing a progress bar that uses an Ajax UpdatePanel and Timer control 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
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
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,...
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
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...
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.