Implementing UpdateProgress

Hi,

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

thanks
justin_smithAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

carlnorrbomCommented:
Hi,

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

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

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) {
              DisableControl_SetTimeout(control.id,500);
            }
    </script>

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.

/Carl.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.