473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1653
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****@NOSPAMdevelop.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****@NOSPAMdevelop.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****@NOSPAMdevelop.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
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....
1
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...
1
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...
4
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...
19
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...
5
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...
0
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...
17
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...
14
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.