RE: Async Programming in asp .Net page as Windows Forms

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 08/13/04


Date: Fri, 13 Aug 2004 05:50:41 GMT

Hi SalamElias,

As for the async processing in ASP.NET you mentioned ,here are my
understandings:

The ASP.NET web application is quite different from the desktop
applications(winform) which is request/response based, this is due to the
connectionless of the HTTP protocal. A request is processing on the server
side and when all the output is generated , webserver send back the
response content back to client. So when the clientuser is viewing the
response output, there is not relation with the serverside. And those async
concepts in asp.net is mostly serverside async , which all need to be
finished before the response be sent to the client, here are some

#Use Threads and Build Asynchronous Handlers in Your Server-Side Web Code
http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/

#At Your Service: Performance Considerations for Making Web Service Calls
from ASPX Pages
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/h
tml/service07222003.asp

#Communicating with XML Web Services Asynchronously
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconinvokingwebservicesasynchronously.asp

IAlso, if you do want to let the multi-part of a web page be displayed
asynchronisely to the end user, you can consider Bruce's suggestion that
use the <iframe> element which can help embed multi inner page in a parent
page so that different inner page can be loaded separately.

In addition, there will come a new good feature-----script call back-----
in ASP.NET2 which will help call back serverside handler from clientside
via script. However , this feature is still very restricted for complex
work. Here is a tech article on this, you may take a quick bit on it:)

#Script Callbacks in ASP.NET
http://msdn.microsoft.com/msdnmag/issues/04/08/CuttingEdge/default.aspx

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Relevant Pages

  • RE: SOAP .Net client wrapper questions
    ... Async operation with the webservice ... a common cause is the XML serialization ... pregenerate some XML serialization assembly for webservice client. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Uniquely Identifying Multiple/Concurrent Async Tasks
    ... the only reasonable way to get away from the client generating the unique ID for the async operation - in the implementation at the above links - would be for the CalculatePrimeAsync method to return an IAsyncResult to the client. ... So the direct implication with respect to my previous comments is that it's the AsyncOperation that you should pass back to the client, somehow. ... The PrimeAsyncOperation class itself need not be visible to the client; only the interface IPrimeAsyncOperation needs to be, and that's what the CalculatePrimeAsync method would return. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Asynchronous Sockets Client - Returning status
    ... I'm trying to create an Asynchronous Client using the sample code from MSDN ... However, in your case you are not implementing IAsyncResult, nor are you using something like BeginInvoke. ... you will have to use some besides the "EndInvoke" pattern common to much of the async APIs in .NET. ... What I have done in similar situations is define one or more events on the asynchronous class. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sending an alert message to logon user in Web Application
    ... As for your question on let the online user in the web application notify ... mode in which the client has no persistent connection with the serverside. ... So if we need to store the message info at the serverside. ... Here is the related reference on DHTML webservice in MSDN: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Async Remoting With Callback
    ... >>>side async calls don't really add up to support a lot of transaction. ... Are you suggesting that there is something inherently slow about async remoting that is ... I have a major server project that does that. ... client) is being suspended for the duration of the remote call itself. ...
    (microsoft.public.dotnet.framework.remoting)