Results 1 to 2 of 2

Thread: add new record

  1. #1
    Lana Mosby Guest

    add new record


    Is there anyway to disable the add button once the user has clicked. Currently, records are being added several times, because the users click the "Add New Record" button several times.

  2. #2
    John Guest

    add new record (reply)


    Hi Lana,

    What you probably want is what we call the "non-sticky add" mode. Basically, you drop a few lines of ASP code into your program to detect the Add a New Record button and get out of Add mode.

    Check out the example #123 at "http://mmstools.com/apps/". Look at the source code and you'll see a section at the bottom where there's an IF check looking at Request("ASPdbEditBut_1123&#34. If you detect the button was pressed, you can do a reset and simply redirect back to yourself or else put up a message and a link such as this example does. Whatever you wish.

    Thanks,
    John

    ------------
    Lana Mosby at 10/15/01 3:15:49 PM


    Is there anyway to disable the add button once the user has clicked. Currently, records are being added several times, because the users click the "Add New Record" button several times.

Posting Permissions

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