473,774 Members | 2,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

please wait.. page


I have a question on designing a please wait aspx page.
Currently I have a test.aspx page with codebehind page and
page_onload contains my stored procedure calls. I've
create something similar in old asp so I've try similiar
method and I sort of got it work however my please wait
message gets display the same time as my data so is there
a way to display what's in my <div> tag first, then
executed page_onload for my stored procedure calls.
Lastly, my javascript call is working to hide the <div>
tag at the end of my page.. Thanks.
Joe K.

-------------------------------
test.aspx
-------------------------------

<script language="javas cript">

function hideObject(obj) {
obj.visibility = "hidden";
}
</script>

<body MS_POSITIONING= "GridLayout ">
<DIV ID="splashScree n" STYLE="Z-
INDEX:5;LEFT:35 %;POSITION:abso lute;TOP:30%">
<TABLE BGCOLOR="#00000 0" BORDER="1"
BORDERCOLOR="#0 00000" CELLPADDING="0" CELLSPACING="0"
HEIGHT="200" WIDTH="300">
<TR>
<TD WIDTH="100%" HEIGHT="100%" BGCOLOR="#ccccc c"
ALIGN="middle" VALIGN="center" >
<FONT FACE="Helvetica ,Verdana,Arial" SIZE="3"
COLOR="#000066" >
<B>Page Loading. Please wait...</B></FONT> &nbsp; &nbsp;
<BR></TD></TR>
</TABLE>
</DIV>
<form runat="server" name="form1" ID="Form1">
</form>
<SCRIPT LANGUAGE="JavaS cript">
var splash = document.all.sp lashScreen.styl e;
hideObject(spla sh);
</SCRIPT>
</body>

-------------------------------
test.aspx.vb
-------------------------------

Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles MyBase.Load
Response.Flush( )

'Stored procedure calls

Response.Flush( )

End Sub
Nov 17 '05 #1
1 1846
Joe,

An excellent way to handle a long page load is to use multithreading in your
app.

I have links to two excellent tutorials, one in VB and one in C#, on my
website, www.aboutfortunate.com. Just search the code library for something
like: "multithrea d web app" or something like that.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"joe kenney" <jo*********@ya hoo.com> wrote in message
news:01******** *************** *****@phx.gbl.. .

I have a question on designing a please wait aspx page.
Currently I have a test.aspx page with codebehind page and
page_onload contains my stored procedure calls. I've
create something similar in old asp so I've try similiar
method and I sort of got it work however my please wait
message gets display the same time as my data so is there
a way to display what's in my <div> tag first, then
executed page_onload for my stored procedure calls.
Lastly, my javascript call is working to hide the <div>
tag at the end of my page.. Thanks.
Joe K.

-------------------------------
test.aspx
-------------------------------

<script language="javas cript">

function hideObject(obj) {
obj.visibility = "hidden";
}
</script>

<body MS_POSITIONING= "GridLayout ">
<DIV ID="splashScree n" STYLE="Z-
INDEX:5;LEFT:35 %;POSITION:abso lute;TOP:30%">
<TABLE BGCOLOR="#00000 0" BORDER="1"
BORDERCOLOR="#0 00000" CELLPADDING="0" CELLSPACING="0"
HEIGHT="200" WIDTH="300">
<TR>
<TD WIDTH="100%" HEIGHT="100%" BGCOLOR="#ccccc c"
ALIGN="middle" VALIGN="center" >
<FONT FACE="Helvetica ,Verdana,Arial" SIZE="3"
COLOR="#000066" >
<B>Page Loading. Please wait...</B></FONT> &nbsp; &nbsp;
<BR></TD></TR>
</TABLE>
</DIV>
<form runat="server" name="form1" ID="Form1">
</form>
<SCRIPT LANGUAGE="JavaS cript">
var splash = document.all.sp lashScreen.styl e;
hideObject(spla sh);
</SCRIPT>
</body>

-------------------------------
test.aspx.vb
-------------------------------

Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles MyBase.Load
Response.Flush( )

'Stored procedure calls

Response.Flush( )

End Sub

Nov 17 '05 #2

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

Similar topics

4
8493
by: Jason . | last post by:
I have seen a few articles with a javascript example but it is not working for me. The server side code is processed first and then the javascript so I basically get my page loading splash screen displayed for a split second and then my page I am navigating to. How do I display the "Please Wait..." before the server side code kicks in? Thanks.
3
9875
by: Danny Masti | last post by:
Hello, I have a HIDDEN div with a "Please Wait Message". OnSubmit I show the hidden div with the "Please Wait Message". It works fine. But if I replace the "Please Wait Message" with an animated gif - the gif shows up BUT it does not animate. How do I make the gif animate? THIS WORKS (initially hidden):-
4
3300
by: Dennis M. Marks | last post by:
I have multiple functions that dynamically build parts of a page. It can take 15-30 seconds for this process to complete. In IE nothing appears until the page is complete. In Netscape parts of the page appear as built. Is there any way to display a "Please Wait" message that displays as soon as the first javascript begins and disappears when the javascripts have completed? Some scripts are in the header and some in the body. I have...
4
9136
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 an ASP.NET webform that contains a Web User Control. The Web User Control is doing all of the work posting. How can I inform the user of what is happening at the server while the data from this web user control is being processed? --
3
5723
by: Lucas Tam | last post by:
Does anyone have easy to use sample code to build a "Please wait... processing data screen?" I'm interested in something like Expedia's search page Thanks. -- Lucas Tam (REMOVEnntp@rogers.com) Please delete "REMOVE" from the e-mail address when replying.
5
1709
by: Chris | last post by:
Hi, I was following the article http://msdn.microsoft.com/msdnmag/issues/03/12/DesignPatterns/default.aspx I got everything working until I go the the Progress bar section. Here is where I am stuck. This is the vb.net code for the wait.aspx page Public redirectPage As String = "" Public secondsToWait As String = "0"
2
1946
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 the DB I am using a DIV with a please wait message which is removed once the page is loaded. In addition I am using a global error handling using the Application_Error void in the Global.asax file. when the application is loading a page which...
4
3502
by: puja patel | last post by:
hi all, I am developing a shopping cart website in C# where after selecting item, user enters credit card details and click on submit button.This request is then processed by the gateway which usually takes from 5-10 sec of waiting period to get response back if the transaction was approved of declined. I want to implement page which says "Please wait...your request is being processed." after user clicks on submit button and before I...
5
3236
by: Jeremy | last post by:
Hi all, I have database actions that will potentially take several seconds to complete. My normal page uses AJAX so keeping the user informed of what is happening is not a problem. However, the page also has fallback code in case of no Javascript. In this case I would like to display temporary "please wait" type page
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.