·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP网站建设 >> Response对象5

Response对象5

作者:佚名      ASP网站建设编辑:admin      更新时间:2022-07-23
Response对象常与其它的代码混合使用。下面这段代码演示了response.write与其
它代码混用的例 子。

<html><head>
<title>res5.asp</title>
</head><body bgcolor="#FFFFFF">
<%
' The response object can be used to write text
' but sometimes some functions must be used to transform
' the text instead of sending as is to the browser

response.write "<B>Hyperion</b> by <I>Dan Simmons</i> is a great
novel"
response.write "<p>"
response.write server.htmlencode("<B>Hyperion</b> by <I>Dan
Simmons</i> is a great novel")
response.write "<p>"


response.write "Joe Smith & Hilda = a team"
response.write "<p>"
response.write server.URLencode("Joe Smith & Hilda = a team")
%>

</body></html>