Response對象與一個HTTP響應相響應,通過該對象的屬性和方法可以控制如何將服務器的數據發送到客戶端浏覽器。
在ASP腳本中使用Response對象時,遵循以下語法格式:
Response.集合名
Response.屬性名
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.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>”
%>
=================效果===========================