ASP Status-attribut

response object reference manual

Status-attributet specificerar värdet för statusraden som servern returnerar.

Tips:Använd detta attribut för att ändra statusraden som servern returnerar.

syntaks

response.Status=statusdescription
parametrar beskrivning
statusdescription

Tolvsiffriga nummer, samt beskrivningen av koden, till exempel 404 Not Found .

Kommentar:statusvärdet är definierat i HTTP-standarden.

exempel

<%
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 object reference manual