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

Wait while loading.....

How can i show a "Wait while loading..." text on my aspx page while loading
data into a datagrid from a database.

/Jonas
Nov 17 '05 #1
4 3708
You pretty much can't as you cannot control what the browser shows to the
user while it's loading a page. There are some things you can do (use a
redirect page or send part of the response first by flushing the response
object) but none are 100% guaranteed to work.

Jerry

"Jonas Nilsson" <jo***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How can i show a "Wait while loading..." text on my aspx page while loading data into a datagrid from a database.

/Jonas

Nov 17 '05 #2
You pretty much can't as you cannot control what the browser shows to the
user while it's loading a page. There are some things you can do (use a
redirect page or send part of the response first by flushing the response
object) but none are 100% guaranteed to work.

Jerry

"Jonas Nilsson" <jo***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How can i show a "Wait while loading..." text on my aspx page while loading data into a datagrid from a database.

/Jonas

Nov 17 '05 #3
I just had the same requirement and it works great:

sub Page_Load()
Response.Write("<br><div align='center' id=myMessage style='font-family
Tahoma; font-size: 18; color:Red'>Loading report, please wait...</div>")
Response.flush
End Sub

sub DisplayReport()

'-- code that reads database here.....

End Sub

<html>
<head>
</head>
<body onload="clearWaitMessage();" >
<center>
<p>

<%Call DisplayReport%>
</p>

</center>
</body>
</html>

<SCRIPT LANGUAGE=JavaScript>
<!--function clearWaitMessage() {
myMessage.innerHTML = "";
}
//-->
</SCRIPT>

"Jonas Nilsson" <jo***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How can i show a "Wait while loading..." text on my aspx page while loading data into a datagrid from a database.

/Jonas

Nov 17 '05 #4
I just had the same requirement and it works great:

sub Page_Load()
Response.Write("<br><div align='center' id=myMessage style='font-family
Tahoma; font-size: 18; color:Red'>Loading report, please wait...</div>")
Response.flush
End Sub

sub DisplayReport()

'-- code that reads database here.....

End Sub

<html>
<head>
</head>
<body onload="clearWaitMessage();" >
<center>
<p>

<%Call DisplayReport%>
</p>

</center>
</body>
</html>

<SCRIPT LANGUAGE=JavaScript>
<!--function clearWaitMessage() {
myMessage.innerHTML = "";
}
//-->
</SCRIPT>

"Jonas Nilsson" <jo***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How can i show a "Wait while loading..." text on my aspx page while loading data into a datagrid from a database.

/Jonas

Nov 17 '05 #5

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

Similar topics

4
by: MFA | last post by:
Hi All I have one ASP page. During opening this page its taking some time to open as its has to process some asp code. I want to display some animated gif or text showing that page is loading...
3
by: Naomi | last post by:
hello Could anyone please tell me if there is any way i can have the text "Menu Loading Please Wait..." appear while the js menu loads and then disappear after it loads ? hoping to hear some...
0
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from...
4
by: Stephajn Craig | last post by:
I have one page that may take a while to process on the server, and I'd like to implement a please wait message on this page when it posts back to the server and does its business. The page is...
0
by: Jonas Nilsson | last post by:
How can i show a "Wait while loading..." text on my aspx page while loading data into a datagrid from a database. /Jonas
4
by: louvino | last post by:
Hi, I have some links. When I click on one, a window opens but during the loading of this window, I would like the cursor is in state "wait" (using CSS : cursor : wait; ) Help me :-)
2
by: =?Utf-8?B?Z2VvZmZh?= | last post by:
I cannot figure this out and would appreciate any help..... I have a datagrid view that displays the results from a Stored Procedure. it can take awhile to load..... the stored procedure fires...
5
by: BerlinBrown | last post by:
Do you know if it is possible to wait for the iframe page to load and then manipulate the iframe DOM. E.g. mypage: <script> function myinit() { theiframe.location = "iframe_with_frames.html"...
2
by: DKn | last post by:
Hello All, I am doing one C#.net windows application. At the time of loading the form , some operations need to be done, so it will take time( one or two minutes) to load the form. At this time,...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.