473,406 Members | 2,549 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,406 software developers and data experts.

Progress Bar or Waiting message

I m looking for a solution to show a message when ma first page is loading.
It is the "home page" of the application.
And I'd like to give the message 'please waiting ...' during the loading.

I m working under framework 1.1 whith vb.net.
I have found out some solutions but none of then is working.

thanks for your help
fabrice

Aug 24 '06 #1
4 2891
hi fabrice,
every browser i can think of will show a progress bar while the page is
loading, and there will be some 'waiting' icon going on in the browser too.
from a usability perspective, why clutter up the page with "loading..."
messages?

if you need to tell the user to wait while a long task is being performed on
the server, then in my opinion it is a more valid thing to do.

in any case, here is what you can do:
place a div tag like so: <div id='divLoading'at the top of your page with
your "please wait... loading" message in it. then in your code-behind, you
can do something like:
ClientScript.RegisterStartupScript(typeof(string), "Load_Complete",
"document.getElementById('divLoading').display = 'none';", true);

this should hide the message as soon as all the HTML has been sent to the
client. if you want to wait until all the images have finished loading in
the page, then you should add the above javascript to the body onload event,
e.g. <body onload="document.getElementById('divLoading').disp lay = 'none';">

hope this helps

tim
Aug 24 '06 #2
hi fabrice, apologies for my previous email, it had .net 2.0 code in it.
the 1.1 version of this code is:
Page.RegisterStartupScript("LoadingMessage",
"document.getElementById('divLoading').style.displ ay = 'none';")

also, note the corrected javascript, with "style.display"

tim
Aug 24 '06 #3
See the 3 examples in Chapter 3 :

http://www.daveandal.net/books/6744/samples.aspx

Source code is available in each example page

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"fabrice" <em******@test.comwrote in message news:e1**************@TK2MSFTNGP06.phx.gbl...
>I m looking for a solution to show a message when ma first page is loading. It is the "home page"
of the application.
And I'd like to give the message 'please waiting ...' during the loading.

I m working under framework 1.1 whith vb.net.
I have found out some solutions but none of then is working.

thanks for your help
fabrice

Aug 24 '06 #4
Good evening,

Thanks for your help.
I m going to try the solutions and i will get you back the result ofthe
operation.
bye
have a a nice evening.

fabrice

"fabrice" <em******@test.coma écrit dans le message de news:
e1**************@TK2MSFTNGP06.phx.gbl...
>I m looking for a solution to show a message when ma first page is loading.
It is the "home page" of the application.
And I'd like to give the message 'please waiting ...' during the loading.

I m working under framework 1.1 whith vb.net.
I have found out some solutions but none of then is working.

thanks for your help
fabrice

Aug 24 '06 #5

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

Similar topics

2
by: Mark Richards | last post by:
An applet on one of my pages uses a big picture as background. I want to load it before the applet and the rest of the html source. By doing this I want to avoid that the pane of the applet is...
3
by: SpamProof | last post by:
I got an animated gif that is a barber pole spinning that I want to use as a progress bar. The problem is that is stops spinning (shows 1 frame) when my browser is processing a submited request...
7
by: Steve Kallal | last post by:
I have seen this subject tossed around in this forum before. But in my case I need a simple solution. I do NOT need to show progress in terms on percentage complete. But rather I need to show a...
6
by: Ernie | last post by:
I have a unique issue... We are using Microsoft Commerce Server and Content Manager on our eCommerce Site. I have been requested to display a login status (Pic that says Please Wait) in a control...
5
by: B-Dog | last post by:
I'm trying to build a custom progress bar that will run as some subs are running in the background but when I open the custom form with the progress bar on it using the showdialog, none of the subs...
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
3
by: Ron Croonenberg | last post by:
Hello, I have a window where it could take a while to display the info. While waiting I want to display a "progress bar". Once the info is ready to be displayed I want the "progress bar" to...
4
by: avicalc | last post by:
I need help with the structure of a JavaScript program. My process is as follows: 1) Get JSON data via XMLHttpRequest. 2) When done with the above, process the JSON data which may take up to 3...
1
by: Arancaytar | last post by:
I am working on a servlet that takes fairly long to process, and I would like to keep the user updated on the progress with a status bar. I have already finished the necessary javascript and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.