?
Ce document utilise Manuel du site Web PHP chinois Libérer
ASPCode 屬性返回由 IIS 生成的錯誤代碼。
ASPDescription 屬性返回錯誤的詳細(xì)描述。
Category 屬性返回錯誤源(錯誤是由 IIS 、腳本語言還是組件產(chǎn)生的?)
Column 屬性返回產(chǎn)生錯誤的 ASP 文件中的列位置。
Description 屬性返回關(guān)于錯誤的簡要描述。
File 屬性返回產(chǎn)生錯誤的 ASP 文件的名稱。
Line 屬性返回產(chǎn)生錯誤的 ASP 文件中的行位置。
Number 屬性返回錯誤的標(biāo)準(zhǔn) COM 錯誤代碼。
Source 屬性返回錯誤發(fā)生行的實(shí)際源代碼。
ASPError.ASPCode()
ASPError.ASPDescription()
ASPError.Category()
ASPError.Column()
ASPError.Description()
ASPError.File()
ASPError.Line()
ASPError.Number()
ASPError.Source()
<%
dim objErr
set objErr=Server.GetLastError()
response.write("ASPCode=" & objErr.ASPCode)
response.write("<br>")
response.write("ASPDescription=" & objErr.ASPDescription)
response.write("<br>")
response.write("Category=" & objErr.Category)
response.write("<br>")
response.write("Column=" & objErr.Column)
response.write("<br>")
response.write("Description=" & objErr.Description)
response.write("<br>")
response.write("File=" & objErr.File)
response.write("<br>")
response.write("Line=" & objErr.Line)
response.write("<br>")
response.write("Number=" & objErr.Number)
response.write("<br>")
response.write("Source=" & objErr.Source)
%>