how do i stop a double click on a web button

Discussion in 'ASP .Net Web Controls' started by jason, Sep 24, 2003.

  1. jason

    jason Guest

    I want to stop a web button being pressed while I process
    the code associated with it. I thought of adding an
    attribute to disable the button while I performed the
    server process but that seems to stop the server code
    being executed (because the button is disabled first).

    The other solution is to set a session variable while the
    code is processing. This works but I didn't want to do
    this because I would like to apply the functionality to
    all buttons.

    Any ideas?
     
    jason, Sep 24, 2003
    #1
    1. Advertising

  2. hi jason, you might want to check out this article by Andy Smith. He's gone
    into the details :
    http://weblogs.asp.net/asmith/posts/27063.aspx

    He's also created a free control, you might want to use. It solves that
    problem.
    http://www.metabuilders.com/Tools/OneClick.aspx



    "jason" <> wrote in message
    news:1d9a01c3829b$8aaa8a80$...
    > I want to stop a web button being pressed while I process
    > the code associated with it. I thought of adding an
    > attribute to disable the button while I performed the
    > server process but that seems to stop the server code
    > being executed (because the button is disabled first).
    >
    > The other solution is to set a session variable while the
    > code is processing. This works but I didn't want to do
    > this because I would like to apply the functionality to
    > all buttons.
    >
    > Any ideas?
     
    Alessandro Zifiglio, Sep 24, 2003
    #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. Purvi T
    Replies:
    0
    Views:
    923
    Purvi T
    Oct 19, 2004
  2. Sydex
    Replies:
    12
    Views:
    6,645
    Victor Bazarov
    Feb 17, 2005
  3. Amy
    Replies:
    0
    Views:
    1,029
  4. Replies:
    0
    Views:
    393
  5. George Paiva

    how to stop page from re-generating on button click

    George Paiva, Dec 29, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    130
Loading...

Share This Page