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

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP Status 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 337 ::
收藏到网摘: 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

登陆 | 还没注册?