I'm not quite sure what you mean...
If what you want is to assign some string to a variable, and then output this var to the browser:
Code:
<%
dim sString
sString = "<table cellpadding=0 cellspacing=0 border=0><tr><td>Output HTML</td></tr></table>"
response.write sString
%>
If, however, what you want is to buffer all output to the browser,
and be able to discard this in case of some condition (eg. an error):
Code:
<%
'--Turn on buffering
response.buffer = TRUE
'--Output something
response.write "This is sent to the buffer, not the browser.<br>"
'response.flush
response.write "It will be sent to the browser if we don't clear the buffer...<br><br>"
'--Some conditional - try changing it to something that returns false
if 1 + 1 = 2 then
'--Clear the buffer
response.clear
response.write "Error: Blah blah blah<br><br>"
end if
response.write "This will always be sent to the browser..."
%>