Again: Console-ish output in a browser?

Again: Console-ish output in a browser?

am 28.12.2007 16:39:26 von gnewsgroup

Well, I initiated this discussion a few days ago at:

http://groups.google.com/group/microsoft.public.dotnet.frame work.aspnet/browse_thread/thread/33b7f1153825d6fd/501325ee69 224a8c?hl=en&lnk=gst&q=console-ish#501325ee69224a8c

I tried the suggested approach and created a page like this:

Response.Buffer = false;
Response.Write("Something ... ");
System.Threading.Thread.Sleep(2000);
Response.Write("Something else ... ");
System.Threading.Thread.Sleep(2000);
Response.Write("Some other stuff ... ");
System.Threading.Thread.Sleep(2000);

It looks like that it works only if you enter the URL of this page in
the address bar of the browser and hit enter.

But, if this page is directed to from another page through either a
button click (Button or LinkButton does not matter) or even an anchor
href, it does not work! You will only see the end of the output.

Try it out and you'll see the problem.

Any fix of this problem?

Thanks.

Re: Again: Console-ish output in a browser?

am 28.12.2007 17:06:49 von pjondevelopment

Hi,

Try to add a Response.Flush() before the Thread.Sleep call

Regards,

Paulo Santos
http://pjondevelopment.50webs.com

On Dec 28, 1:39=A0pm, gnewsgroup wrote:
> Well, I initiated this discussion a few days ago at:
>
> http://groups.google.com/group/microsoft.public.dotnet.frame work.aspn...
>
> I tried the suggested approach and created a page like this:
>
> Response.Buffer =3D false;
> Response.Write("Something ... ");
> System.Threading.Thread.Sleep(2000);
> Response.Write("Something else ... ");
> System.Threading.Thread.Sleep(2000);
> Response.Write("Some other stuff ... ");
> System.Threading.Thread.Sleep(2000);
>
> It looks like that it works only if you enter the URL of this page in
> the address bar of the browser and hit enter.
>
> But, if this page is directed to from another page through either a
> button click (Button or LinkButton does not matter) or even an anchor
> href, it does not work! =A0You will only see the end of the output.
>
> Try it out and you'll see the problem.
>
> Any fix of this problem?
>
> Thanks.

Re: Again: Console-ish output in a browser?

am 28.12.2007 18:55:54 von gnewsgroup

On Dec 28, 11:06 am, PJ on Development
wrote:
> Hi,
>
> Try to add a Response.Flush() before the Thread.Sleep call
>
> Regards,
>
> Paulo Santoshttp://pjondevelopment.50webs.com
>

Exactly that's the problem. Thank you very much for helping me
resolve it