Latest web development tutorials

Properti Status ASP

Response Referensi Obyek Lengkap Response Referensi Obyek

Nilai yang dikembalikan oleh status server atribut Status baris menentukan.

Tip: Gunakan properti ini untuk mengubah baris status dikembalikan oleh server.

tatabahasa

response.Status=statusdescription

参数 描述
statusdescription 三位数的数字,以及代码的描述,比如 404 Not Found 。
注意:状态值是在 HTTP 规范中定义的。

contoh

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


Response Referensi Obyek Lengkap Response Referensi Obyek