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