w3pop.com :: 网络学院 :: ASP :: ASP Status 属性
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.
提示:这个属性专门是用来修改从服务器端返回的状态行的。
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. |
<%
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