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........
							
						
					"Loading message" while loading ASP.NET pages
				
					Collapse
				
			
		
	X
- 
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 HTML:JavaScript:[code=javascript]Code:<html> <head> <!-- include CSS and JavaScript --> </head> <body> <div id="wrapper"> <!-- whole content goes here --> </div> </body> </html> 
 window.onload = function () {
 document.getEle mentById('wrapp er').style.disp lay = 'block';
 document.body.b ackgroundImage = 'none';
 }[/code]
 CSS:[code=css]body {background: white url('loading.gi f') no-repeat center center; }
 #wrapper {display: none;}[/code]
- 
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 Originally posted by hsriatHTML:JavaScript:[code=javascript]Code:<html> <head> <!-- include CSS and JavaScript --> </head> <body> <div id="wrapper"> <!-- whole content goes here --> </div> </body> </html> 
 window.onload = function () {
 document.getEle mentById('wrapp er').style.disp lay = 'block';
 document.body.b ackgroundImage = 'none';
 }[/code]
 CSS:[code=css]body {background: white url('loading.gi f') no-repeat center center; }
 #wrapper {display: none;}[/code]
 
 
 
 Thanks but the image is getting displayed even after the page load.What should i do for it??Comment
- 
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 Can u please send me the entire code.. I am unable to understand the code.
 Pls send the aspx pageComment
- 
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 Problem with master pages
 
 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..Comment
- 
	
	
	
		
	
	
	
		
	
		
			
				
	
	
	
	
	
	
	
	
	
 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. ThanksComment
Comment