DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 21 Aug 2007 17:15:35 -0400,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Max2006 am
          2    unknown
          3    (Walter Wang [MSFT])


How to show the UpdateProgress contents at the center of monitor by using only CSS   
Hi,

I have the following code to show the UpdateProgress contents at the center 
of page:

    <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
AssociatedUpdatePanelID="UpdatePanel1"
        DisplayAfter="0">
        <ProgressTemplate>
            <div id="Layer1" style="position:absolute; z-index:1; left: 50%; 
top: 50%;">
                <img alt = "Loading..." src ="../images/loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>


The problem is with long pages, so it shows the progress at the center of 
the page, user have to scroll to the middle of the page to see the progress. 
Is there any way to show the progress at the center of monitor (or browser) 
as opposed to the center of page?

The CSS only solution would be preferable.

Any help would be appreciated,
Max
Date:Tue, 21 Aug 2007 17:15:35 -0400   Author:  

Re: How to show the UpdateProgress contents at the center of monitor by using only CSS   
You'll have to go with a javascript solution if you want the exact
center of a browser window, as CSS can't interact with the browser to
determine how wide or long it is.

--
Mark Smith,
http://aspnetlibrary.com
Date:Wed, 22 Aug 2007 07:29:40 -0000   Author:  

RE: How to show the UpdateProgress contents at the center of monitor by using only CSS   
Hi Max,

I agree with Mark here that you will have to use JavaScript to keep the 
progress div stay at the center of the screen.

Here're some related discussions on this issue:

#UpdateProgress Position in middle of screen - ASP.NET Forums
http://forums.asp.net/t/991307.aspx


#Matt Berseth: ASP.NET AJAX: Rendering a Gmail-like 'Loading' Indicator 
over a Specific ASP.NET Control
http://mattberseth.com/blog/2007/06/aspnet_ajax_rendering_a_gmaill.html


Hope this helps.


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Date:Wed, 22 Aug 2007 09:04:21 GMT   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us