NetBox 2.7 使用手册

Write 方法

Write 方法将指定的字符串写到当前的 HTTP 输出

语法

Response.Write variant
 

参数

variant
需要写的数据。该参数可以是任何 Visual Basic Scripting Edition 的 VARIANT 数据类型,包括字符、字符串和整数。该值不能包括字符组合 %>,如果需要,可用转义序列 %\> 代替。Web 服务器在处理脚本时,将转换这一转义序列

示例

以下示例用 Response.Write 方法将输出发送到客户端。

I just want to say <% Response.Write "Hello World." %> 
Your name is: <% Response.Write Request.Form("name") %>

以下示例将 HTML 标记添加到 Web 页输出。由于 Write 方法返回的字符串不包含字符组合 %>,代之的是 %\>。以下脚本

<% Response.Write "<TABLE WIDTH = 100%\>" %>

输出

<TABLE WIDTH = 100%>

应用于

Response 对象
版权所有: 2003- 网络盒子