[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

display loading picture during sql processing

Posted on 2009-07-15
4
Medium Priority
?
405 Views
Last Modified: 2012-05-07
I want to display a Loading.. gif file in my ASP page at the time of sql query processing.

While opening a particular page, it is taking 1 minute time to display the content (with some HTML tables where the values coming from database) because of large sql queries in that page. So I want to display the Loading gif file first and once the resultset for the queries were received, I want to hide the loading gif file and display the results from the query.

thanks
0
Comment
Question by:siva_gk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 200 total points
ID: 24866933
You actually would do this with Javascript or clientside script.  A simple and easy to apply method is like in the html below.  Notice the Response.Flush which sends the html to the browser even before the rest of the page is ready.  That html makes a basic "Loading page .... " message.  The message is hidden when the page loads using the onload event and Javascript.
Let me know if you have a question.  The message and other aspects are very basic and there are many variations of this.  However it will show you the basics and could be all you need.  If not then it will give you a start and something to respond to.
bol

<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
   <style type="text/css">
   <!--
   td 
   	{
   	font-size: 9pt;
	font-family: Verdana, Arial;
	font-weight: bolder;
	}
   -->
   </style>
</head>
<body bgcolor="#FFFFFF" onload="document.getElementById('loader').style.display='none';">
 
 
<%
Response.Write "<div id=""loader"" style=""margin: 0px auto; color: blue; font-size: 16pt;"">Loading page....</div>"
Response.Flush

Open in new window

0
 

Author Comment

by:siva_gk
ID: 24868100
in case i have to display some gif file..?
0
 

Author Comment

by:siva_gk
ID: 24868617
thanks dude... i put the image inside the div tag and i got the things done :-)

0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 24870404
Great!  I am glad I could help.  Thanks for the interesting question, the grade and the points.
bol
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question