|
-
Jun 30th, 2005, 02:51 PM
#1
Thread Starter
Hyperactive Member
Please wait message
My page has a button to print reports. When clicked, a new window is displayed with the reports. Since the report takes time to render, I wanted to display a "Please wait" message first.
I placed this on the page load and the "Please wait message" is displayed prior to the report being shown (see Page1 attachment).
VB Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Response.Write("<DIV><TD><B>Please wait...</B></TD></DIV>")
Response.Write(Space(256))
Response.Flush()
Response.Flush()
However, when the report is shown, the "Please wait" message is still visible (see Page2 attachment). How do I remove this when page is done loading? How do I replace the Please wait message with an image instead?
Thanks
-
Jul 1st, 2005, 12:58 AM
#2
Re: Please wait message
Use javascript for this. The page can start with the <DIV> showing the message. In the ONLOAD event of the body (body tag), hide the div layer.
-
Jul 1st, 2005, 09:45 AM
#3
Thread Starter
Hyperactive Member
Re: Please wait message
I actually tried THIS CODE but it really does not give me the desired results.
With this code, it takes a longer time to see the "PLEASE WAIT" message displayed on the page. Then when it does, it's like a blink only then the whole page is rendered basically defeating the purpose of the function.
With the first code, once the page is redirected, I see the "PLEASE WAIT" immediately and then the whole page is displayed in total afterwards.
-
Jul 3rd, 2005, 09:24 AM
#4
Re: Please wait message
What about using the same webform rather than displaying another window? Just a suggestion, but you could have your "please wait" message in an asp anel control which was hidden until the user clicks on your button...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|