Latest web development tutorials
 

ASP Write Method


< Complete Response Object Reference

The Write method writes a specified string to the output.

Syntax

Response.Write variant

Parameter Description
variant Required. The data to write

Examples

Example 1

<%
Response.Write "Hello World"
%>

Output:

Hello World

Example 2

<%
name="John"
Response.Write(name)
%>

Output:

John

Example 3

<%
Response.Write("Hello<br>World")
%>

Output:

Hello
World

< Complete Response Object Reference