Object
Write
The Write method writes the specified string to the current HTTP output.
Grammar
Response.Write Variant
Parameters
-
Variant
-
The data that needs to be written. This parameter can be a VARIANT data type for any Visual Basic scripting Edition, including characters, strings, and integers. The value cannot include character combination%>, and can be replaced with escape sequence%\> if needed. The WEB server converts this escape sequence when it processes the script.
Example
The following example sends the output to the client using the Response.Write method.
I just want to say <% Response.Write ' Hello World '%> Your name is: <% Response.Write request.form ("name")%>
The following example adds an HTML tag to the Web page output. Because the string returned by the Write method does not contain the character combination%>, the generation is%\>. The following script
<% Response.Write "<table WIDTH = 100%\>"%>
Output
<table WIDTH = 100%>
Apply to
Response objects