473,507 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Asynchronous Pages Always?

my question is when to use Asynchronous Pages and when to not?

Considering their advantage of not locking the UI thread for a
particular process whether long or not, I might think that it is
worthwhile to
use them for every single page, whatever the process.... but I may be
wrong.

what do you think?
Thanks!
Jul 23 '08 #1
2 1347
Varangian wrote:
my question is when to use Asynchronous Pages and when to not?

Considering their advantage of not locking the UI thread for a
particular process whether long or not, I might think that it is
worthwhile to
use them for every single page, whatever the process.... but I may be
wrong.

what do you think?
Thanks!
Most web pages only fetch data once, so it's more efficient to just send
a complete page instead of making several requests to first get the page
and the fill it with data.

If you change the contents of the page, you often want the URL to
reflect the change, so you simply load a new page.

It's mostly for a bit more complicated scenarios, where you don't have
pages that can be indexed by search engines anyway, that asynchronous
pages can be handy.

--
Göran Andersson
_____
http://www.guffa.com
Jul 23 '08 #2
On Jul 23, 1:01*pm, Göran Andersson <gu...@guffa.comwrote:
Varangian wrote:
my question is when to use Asynchronous Pages and when to not?
Considering their advantage of not locking the UI thread for a
particular process whether long or not, I might think that it is
worthwhile to
use them for every single page, whatever the process.... but I may be
wrong.
what do you think?
Thanks!

Most web pages only fetch data once, so it's more efficient to just send
a complete page instead of making several requests to first get the page
and the fill it with data.

If you change the contents of the page, you often want the URL to
reflect the change, so you simply load a new page.

It's mostly for a bit more complicated scenarios, where you don't have
pages that can be indexed by search engines anyway, that asynchronous
pages can be handy.

--
Göran Andersson
_____http://www.guffa.com
Thanks Goran Andresson

what has indexing by search engines has to do with it?

unreleasing the UI thread for another thread is less efficient
depending on the process time of the asynchronous process?

you said most web pages fetch data once.... not always... what if the
data is fetched constantly say every minute or so?
Jul 23 '08 #3

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

Similar topics

4
1556
by: Chris | last post by:
Hello, With asynchronous programming : Why does the callback-function (running in a worker thread) may not update the state of a control on the main-form ? The docs say that you must use a...
9
8655
by: Michael Lindsey | last post by:
I need to write a server app to send images to client GUIs that are outside of the server's domain. The client will have the file system path to the image but can not access the file system. I am...
4
348
by: bernardpace | last post by:
Hi, I am trying to get more familiar with asynchronous programming. I was reading through the document found on the page: ...
0
1503
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX...
0
1297
by: DotNetShadow | last post by:
Hi Guys I came across this article which deals with Performance Considerations for Making Web Service Calls from ASPX Pages:...
1
1773
by: MSDN | last post by:
Does anyone know how to do this with a readline statement or equivalent method? Thanks in advance. Chris
1
2857
by: dba123 | last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method which does an insert but how can I do this Asyncronously so that it does not affect the load on our public production...
2
1280
by: mark.norgate | last post by:
Hello The thing that interested me more about ASP.NET 2.0 before it came out was asynchronous web pages. Now it's here and I have time to investigate, I'd like to know about how to write pages...
3
4730
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I need to write asynchronous HTTPModule which will sometimes execute long job. I've written it using AddOnBeginRequestAsync but it still executes synchronously - I am checking performance...
0
7114
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...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
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
5623
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,...
1
5045
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
3191
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
1544
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 ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
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.