Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Response.Flush

Reply
Thread Tools

Response.Flush

 
 
Jason
Guest
Posts: n/a
 
      09-01-2004
I am using response.flush in order to display "Please
wait" message. The problem is that it takes about 15 to
20 seconds for the message to appear. How can I make
this appear as soon as the user accesses the page. I am
using response.buffer = true as well.

I have about five include files on the page.


<body bgcolor="#FFFFFF" text="#000000">
<script>
<!--
if (document.all)
{
document.write("<span id=w>");
document.write("<table width=100%>");
document.write("<tr><td>&nbsp;</td></tr>")
document.write("<tr><td
align=center><b>Please wait while we compile your
report...</b></td></tr>")
document.write("<tr><td align=center><img
src=images/wait.gif></td></tr>")
document.write("</table>");
document.write("</span>");
}
//-->
</script>
<% Response.Flush() %>

 
Reply With Quote
 
 
 
 
Mark Schupp
Guest
Posts: n/a
 
      09-01-2004
Do the include files contain code that executes before the client-side
script block is written out?

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"Jason" <(E-Mail Removed)> wrote in message
news:44c301c49044$0e0aa110$(E-Mail Removed)...
> I am using response.flush in order to display "Please
> wait" message. The problem is that it takes about 15 to
> 20 seconds for the message to appear. How can I make
> this appear as soon as the user accesses the page. I am
> using response.buffer = true as well.
>
> I have about five include files on the page.
>
>
> <body bgcolor="#FFFFFF" text="#000000">
> <script>
> <!--
> if (document.all)
> {
> document.write("<span id=w>");
> document.write("<table width=100%>");
> document.write("<tr><td>&nbsp;</td></tr>")
> document.write("<tr><td
> align=center><b>Please wait while we compile your
> report...</b></td></tr>")
> document.write("<tr><td align=center><img
> src=images/wait.gif></td></tr>")
> document.write("</table>");
> document.write("</span>");
> }
> //-->
> </script>
> <% Response.Flush() %>
>



 
Reply With Quote
 
 
 
 
Jason
Guest
Posts: n/a
 
      09-01-2004
I found the problem. I put the "Please wait text at the
top of my page before my include files.

>-----Original Message-----
>Do the include files contain code that executes before

the client-side
>script block is written out?
>
>--
>Mark Schupp
>Head of Development
>Integrity eLearning
>www.ielearning.com
>
>
>"Jason" <(E-Mail Removed)> wrote in

message
>news:44c301c49044$0e0aa110$(E-Mail Removed)...
>> I am using response.flush in order to display "Please
>> wait" message. The problem is that it takes about 15

to
>> 20 seconds for the message to appear. How can I make
>> this appear as soon as the user accesses the page. I

am
>> using response.buffer = true as well.
>>
>> I have about five include files on the page.
>>
>>
>> <body bgcolor="#FFFFFF" text="#000000">
>> <script>
>> <!--
>> if (document.all)
>> {
>> document.write("<span id=w>");
>> document.write("<table width=100%>");
>> document.write("<tr><td>&nbsp;</td></tr>")
>> document.write("<tr><td
>> align=center><b>Please wait while we compile your
>> report...</b></td></tr>")
>> document.write("<tr><td align=center><img
>> src=images/wait.gif></td></tr>")
>> document.write("</table>");
>> document.write("</span>");
>> }
>> //-->
>> </script>
>> <% Response.Flush() %>
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments