RE: Does ASP stop executing after a redirect
by Chuck Evans <Chucke(at)captura.com>
|
| Date: |
Thu, 28 Sep 2000 12:02:52 -0700 |
| To: |
"'Peter Benoit'" <pbenoit(at)triton-network.com>, "'Cyanide _7'" <leo7278(at)hotmail.com>, Chuck Evans <Chucke(at)captura.com> |
| Cc: |
hwg-languages(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
The visitor completes a form to register to see an online demo. On submit,
an ASP file in the cgi-bin is called. The ASP file first sends a "thanks for
registering" email to the visitor, another email to me saying "so and so has
registered", and THEN redirects the visitor to the page on the site with
links to the demo.
The way I might have to do it is to put all the processing on that final
demo page (and make it an ASP page), so that the page draws first and THEN
the backend emailing happens.
---------------------------------------------------------
Chuck Evans
Web Marketing Manager
Captura Software, Inc.
(425) 424-1155
chucke(at)captura.com
http://www.captura.com
-----Original Message-----
From: Peter Benoit [mailto:pbenoit(at)triton-network.com]
What kind of redirect are you talking about? When the thank you page
appears? Don't use the Response.Redirect in ASP to do that, use META or
some client side script instead. That way you insure that the page was
processed, before it's presented and redirected.
* -----Original Message-----
* From: Cyanide _7 [mailto:leo7278(at)hotmail.com]
*
* i dont have any hard evidence, but i'd have to surmise that
* no, it does not
* continue. just think of the can of worms you could open if
* it didn't. first
* of all, when would it stop? what if the user closes the
* window immediately
* upon viewing the thank-you page, how would your form
* complete sending. what
* if the script-timeout is exceeded, who would the webserver
* report that to?
* i'd see about finding out why it takes so long to process,
* and or post a
* message saying not to press the button more than once. - Cyanide_7
*
* >If I put a redirect into the beginning of an ASP file, will
* the processing
* >stop after that? Or would it continue to process the
* remainder of the ASP script.
* >
* >What I'd like to do is this (it's processing after a form submit):
* >
* >1. Redirect user to a Thank You page
* >2. Get values from form
* >3. Process values
* >4. Send email to myself.
* >
* >Right now, the script does it 2, 3, 4, 1. But that takes an
* awfully long
* >time and as a result, I get people hitting the submit
* button more than once.
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.