473,320 Members | 1,902 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,320 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 3703
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
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.