attributi degli oggetti ASP ASPError
ASPCode
proprietà ASPCode restituisce un codice di errore generato da IIS.
ASPDescription
struttura ASPDescription restituisce una descrizione dettagliata dell'errore.
categoria
Proprietà categoria restituisce l'origine dell'errore (errore è causato da IIS, linguaggi di scripting o componenti prodotti?)
colonna
proprietà Column restituisce un errore in una posizione di colonna file ASP.
descrizione
Descrizione proprietà restituisce una breve descrizione dell'errore.
file
Proprietà del file restituisce il nome dei file ASP di errore.
linea
Proprietà Linea restituisce una posizione di file riga falsa ASP.
numero
proprietà Number restituisce il codice di errore COM standard di sbagliato.
fonte
proprietà Source restituisce le righe effettivo errore di codice sorgente.
grammatica
ASPError.ASPCode()
ASPError.ASPDescription()
ASPError.Category()
ASPError.Column()
ASPError.Description()
ASPError.File()
ASPError.Line()
ASPError.Number()
ASPError.Source()
ASPError.ASPDescription()
ASPError.Category()
ASPError.Column()
ASPError.Description()
ASPError.File()
ASPError.Line()
ASPError.Number()
ASPError.Source()
Esempi
<%
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)
%>
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)
%>
Completa ASPError Object Reference