Error Trapping the dreaded refresh

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Error Trapping the dreaded refresh

    Hi All

    My problem basically is as follows:

    1) User enters their details to create a new account in my db.

    2) They press the submit, the system successfully creates their new account
    and then displays a page saying 'well done you've created your new account'.

    3) The doofus (or clever clogs) clicks the Refresh button, which in turn
    submits the details back to the db and creates a duplicate entry in my db.
    I don't have a duplicate account num, as the system takes the max last one
    and adds one to it so really no errors are generated, but it does mean that
    they have 2 accounts now.

    As mentioned above, this scenario crops up when doing a New Account page and
    when they've just posted their order via the shopping cart final page (shall
    we say). The latter worries me because duplicate orders would cause a lot
    more hassle.

    I realise this may be a common problem, but I'm not sure what the best
    method is.

    Your help/advice on how to handle this would really be appreciated.

    Rgds

    Laphan


    Laphan Guest

  2. Similar Questions and Discussions

    1. Getting the dreaded "server is unreachable" error
      For some reason, ColdFusion is not starting up with the server. I've tried to install three times now, and I get the same error each time. ...
    2. error trapping from DBI
      I have a module which attempts to wrap methods from the standard DBI module to provide a facade through which those methods can be called on a...
    3. Dreaded Jet DB error 80004005 help needed. What causes this???
      Hi All, I'm trying to understand what causes this error message: Microsoft JET Database Engine error '80004005' The Microsoft Jet database...
    4. Trapping Error Raised by COM object
      Dear Group: If I raise an error in my COM object method, is there a way to trap it in my ASP code where I created the COM object using...
    5. Refresh Error
      Okay, I'm displaying an entire table of numbers from my database. Using a form on the same page, you can enter an amount to add to the table and...
  3. #2

    Default Re: Error Trapping the dreaded refresh

    The key is to redirect the user to another page -- something that confirms
    the creation of account. This way, even if the user clicks on refresh, you
    won't have duplicate entries.

    --
    Manohar Kamath
    Editor, .netWire
    [url]www.dotnetwire.com[/url]


    "Laphan" <news@DoNotEmailMe.co.uk> wrote in message
    news:40c32551_3@127.0.0.1...
    > Hi All
    >
    > My problem basically is as follows:
    >
    > 1) User enters their details to create a new account in my db.
    >
    > 2) They press the submit, the system successfully creates their new
    account
    > and then displays a page saying 'well done you've created your new
    account'.
    >
    > 3) The doofus (or clever clogs) clicks the Refresh button, which in turn
    > submits the details back to the db and creates a duplicate entry in my db.
    > I don't have a duplicate account num, as the system takes the max last one
    > and adds one to it so really no errors are generated, but it does mean
    that
    > they have 2 accounts now.
    >
    > As mentioned above, this scenario crops up when doing a New Account page
    and
    > when they've just posted their order via the shopping cart final page
    (shall
    > we say). The latter worries me because duplicate orders would cause a lot
    > more hassle.
    >
    > I realise this may be a common problem, but I'm not sure what the best
    > method is.
    >
    > Your help/advice on how to handle this would really be appreciated.
    >
    > Rgds
    >
    > Laphan
    >
    >

    Manohar Kamath [MVP] Guest

  4. #3

    Default Re: Error Trapping the dreaded refresh

    wundabar!!!

    thanks Manohar

    Manohar Kamath [MVP] <mkamath@TAKETHISOUTkamath.com> wrote in message
    news:eH5fwJ#SEHA.2908@TK2MSFTNGP10.phx.gbl...
    The key is to redirect the user to another page -- something that confirms
    the creation of account. This way, even if the user clicks on refresh, you
    won't have duplicate entries.

    --
    Manohar Kamath
    Editor, .netWire
    [url]www.dotnetwire.com[/url]


    "Laphan" <news@DoNotEmailMe.co.uk> wrote in message
    news:40c32551_3@127.0.0.1...
    > Hi All
    >
    > My problem basically is as follows:
    >
    > 1) User enters their details to create a new account in my db.
    >
    > 2) They press the submit, the system successfully creates their new
    account
    > and then displays a page saying 'well done you've created your new
    account'.
    >
    > 3) The doofus (or clever clogs) clicks the Refresh button, which in turn
    > submits the details back to the db and creates a duplicate entry in my db.
    > I don't have a duplicate account num, as the system takes the max last one
    > and adds one to it so really no errors are generated, but it does mean
    that
    > they have 2 accounts now.
    >
    > As mentioned above, this scenario crops up when doing a New Account page
    and
    > when they've just posted their order via the shopping cart final page
    (shall
    > we say). The latter worries me because duplicate orders would cause a lot
    > more hassle.
    >
    > I realise this may be a common problem, but I'm not sure what the best
    > method is.
    >
    > Your help/advice on how to handle this would really be appreciated.
    >
    > Rgds
    >
    > Laphan
    >
    >



    Laphan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139