ASPCode
The ASPCode property returns an illegal immigrant generated by an error code.
ASPDescription
The ASPDescription property returns a detailed description error.
Category
The Category property returns the source of the error (IIS generated by an error in the original price)? A scripting language, or an integral part? ) 。
Column
This column property returns an ASP file for the position of the column, resulting in an error.
Desciption
Describes a short description error returned by a property.
File
The file property returns an error from the ASP file name.
Line
The line property returns an ASP file in the row, resulting in an error.
Number
Number property returns the error of the standard COM error code.
Resoure
Source property The actual rate of return of the source code of the line has been wrong.
Grammar
Asperror.aspcode ()
asperror.aspdescription ()
asperror.category ()
asperror.column
() Asperror.description ()
asperror.file () asperror.line () Asperror.number ()
Asperror.source ()
Take a look at a tutorial.
<% 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= "& Amp 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)%>