ASP အခြေအနေ ပိုင်ဆိုင်မှု
❮ ပြီးပြည့်စုံသော တုံ့ပြန်မှု Object ရည်ညွှန်းချက်
အဆင့်အတန်း ပိုင်ဆိုင်မှုသည် ဆာဗာမှ ပြန်ပေးသည့် အခြေအနေလိုင်း၏ တန်ဖိုးကို သတ်မှတ်သည်။
အကြံပြုချက်- ဆာဗာမှ ပြန်ပေးသည့် အခြေအနေလိုင်းကို မွမ်းမံပြင်ဆင်ရန် ဤပိုင်ဆိုင်မှုကို အသုံးပြုပါ။
အထားအသို
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. |
ဥပမာများ
<%
ip=request.ServerVariables("REMOTE_ADDR")
if ip<>"194.248.333.500" then
response.Status="401 Unauthorized"
response.Write(response.Status)
response.End
end if
%>
❮ ပြီးပြည့်စုံသော တုံ့ပြန်မှု Object ရည်ညွှန်းချက်