473,748 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to handle form double submitting.


This may sound like a silly question, but what is the appropriate way to
handle form double submitting in ASP.NET. Page expiration, etc? I am
looking for a way to handle this in some cetral point of the application
without affecting the web page implementation.

Thanks,
Nacho
Nov 19 '05 #1
4 1672
There's actually a new gadget from thinkgeek.com that installs as an ActiveX
component into your webpage that once they click the submit button it reaches
out and dismembers the user's primary index finger. It works like a charm ;)

Seriously, though, the best two approaches I've seen are 1) Education. Teach
people that this is how the infrastructure works. Let them know they'll be
charged twice on their creditcard or they'll do the transfer of funds twice.
Failing that 2) Use javascript to disable or hide the submit button upon
clicking it.

-Brock
DevelopMentor
http://staff.develop.com/ballen
This may sound like a silly question, but what is the appropriate way
to handle form double submitting in ASP.NET. Page expiration, etc? I
am looking for a way to handle this in some cetral point of the
application without affecting the web page implementation.

Thanks,
Nacho


Nov 19 '05 #2
Maybe thinkgeek.com need to implement this for Mozilla too ;)

Back to the problem, I thought about such approaches, but it's very
important to resolve the problem back on the server-side. I will not sleep
well if I rely on the browser for this and also it does not secures the
app from replay attacks.

/Nacho
On Fri, 08 Apr 2005 05:36:28 -0700, Brock Allen <ba****@NOSPAMd evelop.com>
wrote:
There's actually a new gadget from thinkgeek.com that installs as an
ActiveX component into your webpage that once they click the submit
button it reaches out and dismembers the user's primary index finger. It
works like a charm ;)

Seriously, though, the best two approaches I've seen are 1) Education.
Teach people that this is how the infrastructure works. Let them know
they'll be charged twice on their creditcard or they'll do the transfer
of funds twice. Failing that 2) Use javascript to disable or hide the
submit button upon clicking it.

-Brock
DevelopMentor
http://staff.develop.com/ballen
This may sound like a silly question, but what is the appropriate way
to handle form double submitting in ASP.NET. Page expiration, etc? I
am looking for a way to handle this in some cetral point of the
application without affecting the web page implementation.
Thanks,
Nacho


Nov 19 '05 #3
Does IE not have an option to detect accidental double clicks or is that
Windows Explorer, I forget :S

MattC

"Nacho Nachev" <do**@spam.me > wrote in message
news:op******** ******@nnachev. sofia.wizcom.bg ...
Maybe thinkgeek.com need to implement this for Mozilla too ;)

Back to the problem, I thought about such approaches, but it's very
important to resolve the problem back on the server-side. I will not sleep
well if I rely on the browser for this and also it does not secures the
app from replay attacks.

/Nacho
On Fri, 08 Apr 2005 05:36:28 -0700, Brock Allen <ba****@NOSPAMd evelop.com>
wrote:
There's actually a new gadget from thinkgeek.com that installs as an
ActiveX component into your webpage that once they click the submit
button it reaches out and dismembers the user's primary index finger. It
works like a charm ;)

Seriously, though, the best two approaches I've seen are 1) Education.
Teach people that this is how the infrastructure works. Let them know
they'll be charged twice on their creditcard or they'll do the transfer
of funds twice. Failing that 2) Use javascript to disable or hide the
submit button upon clicking it.

-Brock
DevelopMentor
http://staff.develop.com/ballen
This may sound like a silly question, but what is the appropriate way
to handle form double submitting in ASP.NET. Page expiration, etc? I
am looking for a way to handle this in some cetral point of the
application without affecting the web page implementation.
Thanks,
Nacho


Nov 19 '05 #4
Then the only other thing is to track the last time the user posted to the
page. You could even make it more elaborate and track it based upon the values
in the form. In any event, it will be something you build yourself unless
you can find something that already does this.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Maybe thinkgeek.com need to implement this for Mozilla too ;)

Back to the problem, I thought about such approaches, but it's very
important to resolve the problem back on the server-side. I will not
sleep well if I rely on the browser for this and also it does not
secures the app from replay attacks.

/Nacho

On Fri, 08 Apr 2005 05:36:28 -0700, Brock Allen
<ba****@NOSPAMd evelop.com> wrote:
There's actually a new gadget from thinkgeek.com that installs as an
ActiveX component into your webpage that once they click the submit
button it reaches out and dismembers the user's primary index finger.
It works like a charm ;)

Seriously, though, the best two approaches I've seen are 1)
Education. Teach people that this is how the infrastructure works.
Let them know they'll be charged twice on their creditcard or
they'll do the transfer of funds twice. Failing that 2) Use
javascript to disable or hide the submit button upon clicking it.

-Brock
DevelopMentor
http://staff.develop.com/ballen
This may sound like a silly question, but what is the appropriate
way
to handle form double submitting in ASP.NET. Page expiration, etc?
I
am looking for a way to handle this in some cetral point of the
application without affecting the web page implementation.
Thanks,
Nacho


Nov 19 '05 #5

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

Similar topics

13
2889
by: dogu | last post by:
Noob alert. Code is below. File is saved as a .php. What I'm trying to do: User uses 'select' box drop down list to pick a value. Value ($site) is derived from a db query. This works fine. Value selected is used as the 'where' clause of the 2nd query. If $site is a single word, the 2nd query works like a charm. If $site is more than one word (has spaces), the query returns a null
1
3793
by: Display Name | last post by:
the customer I'm developing a site for uses a canned form-parsing page that allows her to have an email subscription opt-in page add emails to a list she can manage using a link that you point your HTML form to. the actual form-parsing page resides on a server that's uneditable to me since it sits on an inaccessible server. my problem is more irritating than anything; everything double-submits.. when you submit the form, I've forced a...
1
2539
by: G4Gun | last post by:
Hi, I have a form in which I have this link :- < href="javascript:submitform(parameters );"> . In the JavaScript function submitform, there is the code for submitting the form.Thi works fine with single click on both IE,NN6.In IE the form is submitte only once even for double click.But if you double click on the link i NN6, the form is submitted twice. This causes problem. The workaroun for this was that we set a flag(indicating form...
4
561
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum number of window handle, because if I reduce to about 2 instances of each window, it can run. But not 20 instances of each window. Does anyone know what the problem is? is it really because it exceeds the maximum number of window handle?
19
1717
by: rich | last post by:
I am building an app using php and postgresql. My questionis this. How do you handle people wanting to make parallel changes to a record. Since in web apps you are doing a select, bring over a record then updating it, there is no lock on that record while you are making the changes in your browser window. Does transactions handle that? Do you make your selection and update all part of the same transaction? This whole scenario has me...
5
4194
by: Drew | last post by:
I am having an issue with an app that I built, it seems that Request.Form doesn't want to work sometimes, and only sometimes. For instance, I got a call last week about an error, I had the user screenshot it and email it to me, the error was, Microsoft OLE DB Provider for SQL Server error '80040e14' Line 1: Incorrect syntax near '='. /file.asp, line 158
0
6188
by: josephkorn | last post by:
Hi all. I have a problem in my website in trying to prevent a user from double submitting the form. I am calling a subroutine from my page_load event that passes in the commandbutton that I want to prevent users from being able to click twice. Everything is working great, except for one small detail. When my client-side validation fires, and is invalid, I see the red text that displays the error message, but the problem is that something is...
17
5666
by: axlq | last post by:
Situation: User submits a form, gets a page returned. User clicks the "reload button." Normal result: Browser asks to confirm re-submitting of the form data. That's not what I want. What I want is behavior like what Wikipedia does, as well as vBulletin forums and other nice php-based sites: Situation: User submits a form, gets a page returned. User clicks
14
3388
by: Ed Jay | last post by:
Despite searching the net, I can't find a suitable solution that prevents a user's double click from submitting a form twice. I'm currently using the following in a button element: <input type="button" onclick="this.disabled=true;this.form.submit();"> While it prevents multiple single clicks, it isn't good enough for a fast double click, such as found on some multi-button mice. Anyone have a better solution?
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9321
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8242
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...
0
4602
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...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
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
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.