Re: Display 'In Process' page when calling async WebService

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

homawong_at_gmail.com
Date: 02/22/05


Date: 22 Feb 2005 11:47:13 -0800

Hi,

The problem with ASP.NET is when a "In Progress page" is displayed, the
HttpContext already end response, i.e., all information are sent to the
client. So when a callback returns, nothing more can be written to the
client's browser. And if I do a redirect, it result an error because
the code behind class doesn't know which browser it should communicate
to (because it ended response to the browser thus the client browser is
in a "disconnected" state).
I can think of two ways to do this.

1. Use JavaScript.
   Have a timed redirect script inject to the "In Progress page." When
times up, the page redirects to the result page and if the result is
not ready, it goes back to the "In progress page" and wait again until
the result is ready (or timeout). The problem of this is the timed
parameter is fixed because you don't know in real time how long will
the web service take to return your call. So in the worst case it takes
twice as long to get the result (of course, this can be reduced but
it's kind of like a passive fix to the problem).

2. Tell the "In progress page" to send part of the page to the client
browser while waiting for the result. This would be ideal but I don't
know how to do it.

I don't have much problem dealing with async call directly, but how the
Page and the Client browser interact to get the solution works.

The solution I want is like the bank websites that after you login, it
display a page saying "We are gathering your information..." and then
direct you to summary page of your bank account.

Thanks,
Homa Wong

DotNetJerome wrote:
> Hi,
>
> The Following link may help you to understand beeterly about the
waithandle.
> I hope you can make you of this, to display the "In Process Page"
during your
> async call.
>
> Cheers,
>
> Jerome. M
> "Homa" wrote:
>
> > Hi all,
> >
> > Can anyone give me some links about how to do an async web service
call
> > from aspx and display a temperary page before the web service
returns?
> >
> > Thanks,
> > Homa Wong
> >
> >



Relevant Pages

  • Re: Hyperlinking to different documents in a form
    ... specific to each particular client? ... This would be the way to browse the progress document. ... You can create a Hyperlink field in the table. ... In forms I preferr to separate the display text from the file name. ...
    (comp.databases.ms-access)
  • Re: displaying text while page is loading
    ... >> i'm trying to display text while a page is loading using a method ... > at which stage the web server and your php have allready forgotten about ... but the rest of the time the client is disconnected. ... if the browser is capable. ...
    (comp.lang.php)
  • Re: Redirect to multiple pages without displaying each page...
    ... not want the URL to display the page that it was being redirected to. ... > "You may want to redirect users from one Web Forms page to another ... > the user's browser does not know about the transfer, ... > This happens because the client cookie hasn't been updated yet since ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Problem with User Control and unset references to controls wit
    ... the datalist as written will not display on the client ... browser if it is not bound to a data source. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Attempt to de-mystify AJAX
    ... > conviction when we know the client is leading ... > code into the browser that it's now just as thick as anything people ... > 1) IT used to think BUI development was easy. ... > 2) Therefore IT people advocated thin client. ...
    (comp.databases.pick)