<%@ Page Language="vb" %>
<html>
<head>
<title>Buffering Output in ASP.NET</title>
<script runat="server">
Sub Page_Load()
Response.BufferOutput = False
Dim i As Integer
For i = 1 To 50
If (i > 10 And i < 30) Then
Response.BufferOutput = True
Else
Response.BufferOutput = False
End If
System.Threading.Thread.Sleep(500)
Response.Write(".")
myMessage.Text &= "."
'Response.Flush
Next
Response.Write("</br>Done!</br>")
myMessage.Text &= "</br>Done!</br>"
End Sub
</script>
</head>
<body>
<asp:label id="myMessage" runat="server"/>
</body>
</html>
|