473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

Aug 21 '07 #1
3 16498
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

Aug 22 '07 #2
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/..._a_gmaill.html
Hope this helps.
Regards,
Walter Wang (wa****@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.

Aug 22 '07 #3
Hi Max,

I'm writing to check the status of this post. Please feel free to let me
know if there's anything else I can help. Thanks.


Regards,
Walter Wang (wa****@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.

Aug 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ahmed Jewahar | last post by:
Hi All, I'm new to this forum as well as new to ASP.NET. My backgorund is ASP. But, I'm just doing my .NET course with MS Certified training center currently. I have couple of questions (it...
3
by: anonieko | last post by:
You can try this code: > > > > > <!--- filename: mypage.html ----> <html> ....blah blah blah <script language=JavaScript src=/Javascript/center.js></script>
4
by: Sean C. | last post by:
Helpful folks, I've just migrated our test server from V7.2 -FP11 to V8.1.3, on WinNT 4.0. Everything went pretty darn smoothly, however I get the following errors when using the Control Center:...
8
by: david.lindsay.green | last post by:
Hello all, I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box...
0
by: Mikael Syska | last post by:
Hey, I have this: http://syska.dk/upload/isi-16.png where the button click event and the treeview selected index changed event are hookedup to the update panel ... this works great. But it can...
0
by: =?Utf-8?B?S2V2aW4=?= | last post by:
HI! In my web form I have one UpdatePanel with a GridView inside, one UpdateProgress outside UpdatePanel, and one DropDownList outside UpdatePanel. The DropDownList run as trigger of the...
2
by: =?Utf-8?B?Q0JLb3dpdHo=?= | last post by:
I have 3 UpdatePanels and 1 UpdateProgress control. If I set the UpdateProgress Control to one of the UpdatePanels, nothing displays on postback. If I don't set the associated control for the...
2
by: hotflash | last post by:
Hi Master CroCrew, I found a good PURE ASP that will allow you to upload 10MB file to the server and the file contents such as Network, Author, Title, etc... will insert to MS Access at the same...
1
by: Guramrit Singh | last post by:
Hello everybody, is there any control adapter made for updatepanel and updateprogress. actually updateprogress control is rendered as display:block, but I want it as display:inline. and it doesn't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.