Latest web development tutorials

Metoda ASP Flush

Response Reference Object Całkowita odpowiedź Object Reference

Metoda Flush wysyła natychmiast buforowane wyjście HTML.

Uwaga: Jeśli response.Buffer false, metoda ta spowoduje błąd w czasie wykonywania.

gramatyka

Response.Flush

Przykłady

<%
Response.Buffer=true
%>
<html>
<body>
<p>I write some text, but I will control when the
text will be sent to the browser.</p>
<p>The text is not sent yet. I hold it back!</p>
<p>OK, let it go!</p>
<%
Response.Flush
%>
</body>
</html>

输出:

I write some text, but I will control when the
text will be sent to the browser.

The text is not sent yet. I hold it back!

OK, let it go!


Response Reference Object Całkowita odpowiedź Object Reference