Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Again: Console-ish output in a browser?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gnewsgroup - 28 Dec 2007 15:39 GMT
Well, I initiated this discussion a few days ago at:

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_t
hread/thread/33b7f1153825d6fd/501325ee69224a8c?hl=en&lnk=gst&q=console-ish#50132
5ee69224a8c


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.
PJ on Development - 28 Dec 2007 16:06 GMT
Hi,

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

Regards,

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

> Well, I initiated this discussion a few days ago at:
>
[quoted text clipped - 22 lines]
>
> Thanks.
gnewsgroup - 28 Dec 2007 17:55 GMT
On Dec 28, 11:06 am, PJ on Development <pjondevelopm...@gmail.com>
wrote:
> Hi,
>
[quoted text clipped - 3 lines]
>
> Paulo Santoshttp://pjondevelopment.50webs.com

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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.