ASP Clear Method

The ASP Clear Method is used to clear or erase an Buffered HTML Output. This method only erases the response Body, It does not affect the response Headers. When the Response.buffer is set to false, It will show an error messvge after calling.

Syntax:

response.Clear

Parameter Values: It does not contain any parameters.

Return Values: This method have no return value.

Example: 

filter_none

edit
close

play_arrow

link
brightness_4
code

<%
// Buffer set to true
response.Buffer=true
%>
<%
 // call clear Method
response.Clear
%>

chevron_right


Output:

None

References:

  • https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525713(v=vs.90)
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.