Response对象5

2008-02-23 05:36:56来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

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>


标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Response对象4

下一篇:ASP中FSO的神奇功能 - 简介