网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: ASP :: ASP Status 属性

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

ASP Status 属性


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:1192 :: ::

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