Implementing UpdateProgress

Posted on 2008-11-04
Last Modified: 2012-05-05

I am using a wizard to enable the user to process credit processing..

at the final step i would like to prevent the user from clicking the finish button more than once..

Further i would like to have a status like "Processing.. please wait" like message displayed..

i have tried this webcontrol in the past./.. but been unsuccessful..

do i need any additional webcontrols to make this work

Question by:justin_smith
    1 Comment
    LVL 18

    Accepted Solution


    Well, using the UpdateProgress control is trivial, i.e.:

        <form id="form1" runat="server">
        <asp:ScriptManager ID="sm1" runat="server">
            <asp:UpdateProgress ID="prgUpdate" AssociatedUpdatePanelID="pnlUpdate" DisplayAfter="250" DynamicLayout="true" runat="server">
                    <!--Stuff to show during update goes here-->
            <asp:UpdatePanel ID="pnlUpdate" runat="server">
                    <!--Stuff inside the updatepanel goes here-->

    Disabling the submit button however might require some client side interaction, such as:
        <script language="javascript" type="text/javascript">
            /* function for disabling the submitt button with a delay after click event*/
            function DisableControl(controlId) {
                  document.getElementById(controlId).disabled =true;
            function DisableControl_SetTimeout(controlId,interval) {
                  setTimeout("DisableControl('" +controlId + "')",interval);
            function btnSubmit_Click(control) {

    And to use this, set the OnClientClick property of your submit button to point to the javascript function:

    btnSubmit.OnClientClick = "btnSubmit_Click(this);"

    or add an attribute in code-behind, page_load event such as:

    btnSubmit.Attributes.Add("onclick", "btnSubmit_Click(this);")

    Hope this helps you solve your problem.



    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now