首页 > 网站 > 建站经验 > 正文

ASP中Response对象的集合、属性和方法介绍

2019-11-02 15:49:42
字体:
来源:转载
供稿:网友

 Response对象与一个HTTP响应相响应,通过该对象的属性和方法可以控制如何将服务器的数据发送到客户端浏览器

在ASP脚本中使用Response对象时,遵循以下语法格式:
Response.集合名
Response.属性名
Response.方法名

Response对象只有一个Cookies集合,该集合的各个属性如下表:

ASP中Response对象的集合、属性和方法介绍  三联

 

=================示例===========================
< %@ language=”vbscript” codepage=”936″%>
< %
Response.Buffer=True
Response.Write “<html>”
Response.Write “<head>”
Response.Write “<title>Response.Write方法应用示例</title>”
Response.Write “<style type=text/css>”
Response.Write “<!– .style1{font-family:宋体;font-size:9pt} –>”
Response.Write “</style>”
Response.Write “<body>”
Response

其它电影[www.aikan.tv/xzhtml/9/]
.Write “<div align=””center”” class=””style1″”>”
Response.Write “赠 汪 伦<br>李白<hr>”
Response.Write “李白乘舟将欲行,忽闻岸上踏歌声。<br>”
Response.Write “桃花潭水深千尺,不及汪伦送我情。<br>”
Response.Write “</div>”
Response.Write “</body>”
Response.Write “</html>”
%>
=================效果===========================

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表