Updateprogress

When I do this like below, my progress control displays on the top. How can I put indicator in the middle of the panel after a
user click Submit in Updatepanel? I want to prevent a user from clicking Submit button again.




<asp:UpdateProgress ID="progress1" runat="server">
        <ProgressTemplate>
       
            <div class="progress">
                <img src="indicator.gif" />
                Please Wait...
            </div>
       
        </ProgressTemplate>
    </asp:UpdateProgress>
<asp:Updatepanel id...
      textboxes
      button submit
      ...
</asp:UpdatePanel>
VBdotnet2005Asked:
Who is Participating?
 
rajeeshmcaConnect With a Mentor Commented:
Hi,

Try setting the Image to the Middle as like the below code

<asp:UpdateProgress id="updateProgress" runat="server">
     <ProgressTemplate>
            <div style="position: fixed; text-align: center; height: 100%; width: 100%; top: 0; right: 0; left: 0; z-index: 9999999; background-color: #000000; opacity: 0.7;">
                    <asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/images/ajax-loader.gif" AlternateText="Loading ..." ToolTip="Loading ..." style="padding: 10px;position:fixed;top:45%;left:50%;" />
            </div>
     </ProgressTemplate>
</asp:UpdateProgress>

Open in new window


Regards
Rajeesh
0
 
Roopesh ReddyIT AnalystCommented:
Hi,

Check the below article, which explains the same!

https://sites.google.com/site/gdkralev/prevent-user-from-clicking-twice-at-a-button-with-asp-net-ajax

Hope it helps u...
0
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.

All Courses

From novice to tech pro — start learning today.