Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Ajax UpdateProgress in the middle of the Page

I am using the Ajax UpdateProgress control. Though it is working just as I expected it to work, I want it to appear at the center of the page. How do I do that

<asp:UpdateProgress runat="server"
      id="PageUpdateProgress" DisplayAfter=0
      DynamicLayout=true>
   <ProgressTemplate>
      <div>
         <img src="../Images/load.gif" />           
     </div>
   </ProgressTemplate>
</asp:UpdateProgress>
like image 963
acadia Avatar asked Jan 05 '11 13:01

acadia


1 Answers

Thanks Jaidev, Very handy post!

It can take a while to get the css just right, so just to simplify the solution for everyone else, you only need the following (for updateprogress middle-positioning):

<div style="position:absolute; width:100%;height:100%;"></div>

and for the image:

<img style="position:relative; top:45%;" />

like image 130
Spyder Avatar answered Oct 09 '22 11:10

Spyder