473,799 Members | 2,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Force ASP code to run entirely, regardless if reload or stop button is hit.

I need to find a way to force all the asp code on a web page to load
regardless if the user hits the reload or stop button on the browser.
I am seeing where more and more users are doing this and it is causing
me some problems on some pages. I would guess there is a way to do
this I am just searching for the wrong thing?

Feb 8 '06 #1
4 1827
AFAIK an ASP page is always executed in its entirety (the server doesn't
know that the stop button has been clicked).

You may want to explain the problem you have so that someone could perhaps
figure the exact cause (which is likely not that). Could it be rather that
the code runs twice (for example if the user "double click" a submit button
?)

--

<gr************ @ei8htlegs.net> a écrit dans le message de
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I need to find a way to force all the asp code on a web page to load
regardless if the user hits the reload or stop button on the browser.
I am seeing where more and more users are doing this and it is causing
me some problems on some pages. I would guess there is a way to do
this I am just searching for the wrong thing?

Feb 8 '06 #2
My issue is on an e-commerce site where I process a transaction and
that transaction gets processed, but the email at the end of the asp
file is never sent out. Usually the user ends up with a duplicate
charge as the transaction gets processed twice but the email
confirmation only gets sent once.

Feb 8 '06 #3
gr************@ ei8htlegs.net wrote on 08 feb 2006 in
microsoft.publi c.inetserver.as p.general:
My issue is on an e-commerce site where I process a transaction and
that transaction gets processed, but the email at the end of the asp
file is never sent out. Usually the user ends up with a duplicate
charge as the transaction gets processed twice but the email
confirmation only gets sent once.


Please quote what you are replying to.

If you want to post a followup via groups.google.c om, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers.
<http://www.safalra.com/special/googlegroupsrep ly/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 8 '06 #4
The page just asks the SMTP server to send the mail and continues to run
(ie. the control flow continues as soon as the request to the STMTP server
is done, not once the SMTP server has really sent the mail).

So it's likely a problem on the SMTP server side. I would check the log or
the appropriate directories to get some information on those bad mails...

--
Patrice

<gr************ @ei8htlegs.net> a écrit dans le message de
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
My issue is on an e-commerce site where I process a transaction and
that transaction gets processed, but the email at the end of the asp
file is never sent out. Usually the user ends up with a duplicate
charge as the transaction gets processed twice but the email
confirmation only gets sent once.

Feb 9 '06 #5

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

Similar topics

4
42790
by: Martin | last post by:
This is probably more of an HTML question than PHP. Perhaps someone here can answer or point me to a proper newsgroup. How can I force the browser to reload an image from the server? I have a page where the user can set some parameters and click a <submit> button. A PHP script then generates a .png graphic and saves it to disc. An html statement (<p><img src="gMyGraphic.png"></p>) then sends the graphic out to the browser.
53
7381
by: Bill | last post by:
Hello Programmers, I am looking for either Java Script (OR HTML etc) to DEFEAT Pop-up Stoppers e.g It will bring up a window that will LOOK like a Pop-up FEEL like a Pop-up Allow a name and e-mail entry BUT is not affected by Popup Stopper, PopUp Killer etc
3
3370
by: Pint | last post by:
I would like to know if there is a programatic way to force the Application object to restart. I have a hosted website where I will be unable to control the webserver (eg:iisreset), and I would like to be able to trap certain events and cause the entire application to reload. Thanks in advance. -Pint
0
2663
by: comp.lang.php | last post by:
I have a form that when you click the "Generate Report" submit button, it will force download a CSV file, required for this project. On the very same page you also have a "Search" submit button, when you press it it should generate search results in a new page. However, when you click the "Generate Report" submit button, the moment you try to THEN click the "Search" submit button, the "Search" submit button NEVER goes to a new page but...
3
3691
by: jshanman | last post by:
If I try to put a site into an iframe that has "escape frame" code in its source (posted below), it will reload the requested page into the parent instead of the iframe. Is there a way to prevent this from happening? One could use onunload to stop the redirection, but I would like to find a way to load a page into an iframe, even if it has this type of code. I have considered server code loading the content and re-displaying it
3
1923
by: UJ | last post by:
Is there any way I can have a page reload itself where it will completely reload from scratch. I have a condition where a person click a button and the easiest way to handle it would be to have the button do the DB stuff it needs to do and then load the page from scratch - not post back. I've tried putting in a server.transfer in the routine that does the button click but it seems to get into an infinite loop. TIA - Jeff.
5
2658
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I force a reload from the server/prevent caching? ----------------------------------------------------------------------- To reload a page, use location.reload(). However, this depends upon the cache headers that your server sends. To change this, you need to alter the server configuration. A quick fix on the client is to change the page URI so...
3
2117
by: COHENMARVIN | last post by:
I have a button in my asp.net page (actually its in a user control with a .ASCX suffix) called btnGetData. I'm trying to make it force a refresh of my page. So what I did was make it call javascript. Should the following work? (It doesn't seem to) Protected Sub btnGetData_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnGetData.Click LoadGridView() ForcePageRefresh() End Sub
2
3826
by: =?Utf-8?B?U2lsa0NpdHlGbG9yaWRh?= | last post by:
I have a web page "PgA" with a GridView. I open another page "PgB" in a new window. On PgB, they do some things that affect the underlying data for the GridView on PgA. When the user is done with PgB, they click a button that executes this VB: Protected Sub Close_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Close.Click 'Do some stuff Response.Write("<script language='javascript'{...
0
10495
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4148
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 we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2942
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.