handling a response with BufferOutput enabled

Hello!

Let's say that a web page is responding to a request with the following code in Page_Load. If this page was loaded using a web browser then each response.write would be submitted to the browser and shown seperately every 1000 milliseconds.

Response.BufferOutput =True
For iAsInteger = 1To 5
Response.Write("line " & i)
Response.Flush()
Threading.Thread.Sleep(1000)
Next

What should be the client code in a windows forms application in order to handle such a response in the same way, so that each string is received by the application seperately?

[982 byte] By [papadi] at [2007-12-23]

.NET Development

Site Classified