473,385 Members | 1,292 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,385 software developers and data experts.

"Loading message" while loading ASP.NET pages

40
I want to show a Progress bar image while loading ASP.NET pages in the browser. I am using ASP.NET 2.0/C#.I want to do it in javascript and not with ajax.help me pls........
Nov 12 '08 #1
7 13443
hsriat
1,654 Expert 1GB
HTML:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <!-- include CSS and JavaScript -->
  4. </head>
  5. <body>
  6. <div id="wrapper">
  7. <!--  whole content goes here  -->
  8. </div>
  9. </body>
  10. </html>
javascript:
Expand|Select|Wrap|Line Numbers
  1. window.onload = function () {
  2.     document.getElementById('wrapper').style.display = 'block';
  3.     document.body.backgroundImage = 'none';
  4. }
CSS:
Expand|Select|Wrap|Line Numbers
  1. body {background: white url('loading.gif') no-repeat center center; }
  2. #wrapper {display: none;}
Nov 12 '08 #2
divyac
40
HTML:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <!-- include CSS and JavaScript -->
  4. </head>
  5. <body>
  6. <div id="wrapper">
  7. <!--  whole content goes here  -->
  8. </div>
  9. </body>
  10. </html>
javascript:
Expand|Select|Wrap|Line Numbers
  1. window.onload = function () {
  2.     document.getElementById('wrapper').style.display = 'block';
  3.     document.body.backgroundImage = 'none';
  4. }
CSS:
Expand|Select|Wrap|Line Numbers
  1. body {background: white url('loading.gif') no-repeat center center; }
  2. #wrapper {display: none;}




Thanks but the image is getting displayed even after the page load.What should i do for it??
Nov 13 '08 #3
hsriat
1,654 Expert 1GB
Sorry, just a little mistake...
Expand|Select|Wrap|Line Numbers
  1. document.body.style.backgroundImage = 'none';
  2.  
Nov 14 '08 #4
Can u please send me the entire code.. I am unable to understand the code.
Pls send the aspx page
Feb 26 '09 #5
acoder
16,027 Expert Mod 8TB
If you want help adding JavaScript to an ASP.NET page, you'd probably better off asking in the ASP.NET forum.
Feb 26 '09 #6
Can anyone plz suggest any Idea that How to implement "loading message" in a site with master pages.
I am having Default page which is master page enabled and it contains many Gridviews with database connection.
This page is taking so much of time to load therefore I want to show loading message for this page only.

Thanks in advance..
Sep 14 '09 #7
acoder
16,027 Expert Mod 8TB
If you have exactly the same JavaScript question, you may ask it here. If you have a similar question, ask in this forum, but if you have an ASP.NET question, ask in the ASP.NET forum. Thanks
Sep 14 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: mderie | last post by:
Well I start Visual Studio 2003, load my current project, open the "File" -> "Add new item..." menu, select the class item in the code category and press OK ! All I get is the error message...
1
by: Stacey | last post by:
Hi, I'm hoping for a bit of advise-- I have a (relatively, from the point-of-view of this dilettante) complex script that attempts to preload certain images in order to trigger one of a series of...
0
by: xixi | last post by:
hi, we are running db2 udb v8.1 on windows, when i try to retrieve a view's data , i get the error SQL10007N Message "99999" could not be retrieved. Reason code: "4". what is message 99999? i...
1
by: Stimp | last post by:
I have two dropdowns that take a few seconds to populate (they are populated from a remote database, but the connection to the database is not the best). Is it possible to put a 'Loading...'...
3
by: Stimp | last post by:
I have two dropdowns that take a few seconds to populate (they are populated from a remote database, but the connection to the database is not the best). Is it possible to put a 'Loading...'...
2
by: dana lees | last post by:
Hi, I am developing a c# asp.net application. I have a button which when i click on i open a pdf file. Since the pdf file is very very large i would like to open a window that says "Loading...
0
by: Terry Tang | last post by:
Hi There, We are extending Python interpreter to support special functions of our tools. What we did is to compile Python's source code (which is got from the an installation on a Linux...
3
by: Bri | last post by:
AC97 on WinXP, Image control on a Form and on a Report. I have followed the advice on the following MVPS page: http://www.mvps.org/access/api/api0038.htm This states that after changing the...
2
by: Curious | last post by:
There's a problem with what is displayed on a tab in my UI. At first, it's a message, "loading...". Then it should be replaced with the actual file name on the tab. Now the issue is that it...
7
by: saurabhsingh | last post by:
Can anyone plz suggest any Idea that How to implement "loading message" in a site with master pages. I am having Default page which is master page enabled and it contains many Gridviews with...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.