Ultimele tutoriale de dezvoltare web
 

ASP Metoda Flush


<Complete Reference Object Răspuns

Metoda Flush trimite imediat de ieșire HTML tamponata.

Note: Dacă Response.Buffer este falsă, această metodă va provoca o eroare de run-time.

Sintaxă

Response.Flush

Exemplu

<%
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>

Output:

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!

<Complete Reference Object Răspuns