Thuộc tính trạng thái ASP
❮ Tham chiếu đối tượng phản hồi hoàn chỉnh
Thuộc tính Trạng thái chỉ định giá trị của dòng trạng thái do máy chủ trả về.
Mẹo: Sử dụng thuộc tính này để sửa đổi dòng trạng thái do máy chủ trả về.
Cú pháp
response.Status=statusdescription
Parameter | Description |
---|---|
statusdescription | A three-digit number and a description of that code, like
404 Not Found. Note: Status values are defined in the HTTP specification. |
Các ví dụ
<%
ip=request.ServerVariables("REMOTE_ADDR")
if ip<>"194.248.333.500" then
response.Status="401 Unauthorized"
response.Write(response.Status)
response.End
end if
%>
❮ Tham chiếu đối tượng phản hồi hoàn chỉnh