Re: Hitting the "Submit" button multiple times by mistake

Discussion in 'ASP .Net' started by Joerg Jooss, Apr 11, 2004.

  1. Joerg Jooss

    Joerg Jooss Guest

    bruce barker wrote:
    > the problem with disabling the submit button, is what does the user
    > do if it never comes back, becuase the internet never completed the
    > request? you should at least use a timer to re-enable button. you
    > should add code to support double post becuase they will happen even
    > if you disable the button, say the user thinks it took too long, so
    > they refresh the page, and hit submit again.


    And don't even bother implementing in on the client-side until you have a
    server-side solution (unless you can be sure that your users will never be
    able to disable client-side scripting).

    A typical server-side solution for this is to add a special form token (e.g.
    some random number) to each web form as a hidden field and store the last
    issued token in the session. If the user submits a form and the value of the
    submitted token matches the value of the token that is stored in the
    session, the form submit is permitted, otherwise it is rejected.

    Cheers,

    --
    Joerg Jooss
     
    Joerg Jooss, Apr 11, 2004
    #1
    1. Advertising

  2. Re: Hitting the "Submit" button multiple times by mistake

    Have a look at this product

    http://refreshProtection.enetricity.co.uk/

    It is a HttpModule that you can add to your ASP.NET application to prevent double submits by your user.

    ---
    Posted using Wimdows.net NntpNews Component -

    Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
     
    DotNetJunkies User, May 22, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    2
    Views:
    1,603
    Guest
    Oct 25, 2004
  2. Megha Vishwanath
    Replies:
    3
    Views:
    718
    Megha Vishwanath
    Jul 20, 2004
  3. Terry Reedy

    Hitting send by mistake -- a solution

    Terry Reedy, Feb 5, 2013, in forum: Python
    Replies:
    0
    Views:
    107
    Terry Reedy
    Feb 5, 2013
  4. TIm Chase
    Replies:
    0
    Views:
    111
    TIm Chase
    Feb 5, 2013
  5. Ian Kelly
    Replies:
    0
    Views:
    113
    Ian Kelly
    Feb 5, 2013
Loading...

Share This Page