当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Status 属性

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP Status 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 336 ::
收藏到网摘: n/a

The Status property specifies the value of the status line returned by the server.
Status(状态) 属性的作用是通过服务器返回状态行的值。

Tip: Use this property to modify the status line returned by the server.
提示:这个属性专门是用来修改从服务器端返回的状态行的。

Syntax
语法

response.Status=statusdescription

Parameter
参数
Description
描述
statusdescription A three-digit number and a description of that code, like 404 Not Found
由三个阿拉伯数字组成的对具体代码的描述,如“404 Not Found”

Note:  Status values are defined in the HTTP specification.
注意:Status(状态)值是按照HTTP的规范描述的

Examples
举例

<%
ip=request.ServerVariables("REMOTE_ADDR")
if ip<>"194.248.333.500" then response.Status="401 Unauthorized" response.Write(response.Status) response.End
end if
%>

评论 (0) All

登陆 | 还没注册?