Learnthat.com Free Certification and Computer Online Courses
ThatNetwork.com Internet Media Network Givethat.com free gift ideas Definethat.com - Free technical definitions, define Free Romance Tips, Romantic Tips, Date Ideas Free POD publisher comparison print on demand
Learnthat.com Free A+ Certification, Computer Classes, Certification Courses, Business, Lifestyle, ApplicationsFree business tutorials and definitionsFree certification tutorials and definitionsFree computer and technical tutorials and technical definitionsFree Finance Tutorials and DefinitionsFree House Repair TutorialsFree Lifestyle and Fun Tutorials
  All Online CoursesNew Courses QuickTipsWord DefinitionsSubmit a TutorialLinks
÷ Resources
Home
free tech tutorials
Free Tutorials
free tech tutorials
Certifications
free tech tutorials
Definitions
free tech tutorials
Resources/Links
free tech tutorials
Forums
free tech tutorials
Distance Education
free tech tutorials
Highest Rated Tutorials
÷ Popular Tutorials
÷ New Tutorials

Active Server Pages (ASP)

 

The ASPError Object

The ASPError object, implemented in ASP 3.0, is used to return detailed information about an error occurring on a page. The object is created by the Server.GetLastError() method.

Note: The ASPError object can only be used with IIS5.

ASPError Object: Properties

ASPCode

Returns the error code.

ASPDescription

Returns a description of an ASP error.

Category

Returns the source of the error.

Column

Returns the column in the file where the error occurred.

Description

Returns a brief description of the error.

File

Returns the name of the file where the error occurred.

Line

Returns the line number where the error occurred.

Number

Returns the COM error code.

Source

Returns the source code of the line containing the error.

To use the ASPError object, you must first create the object using the Server.GetLastError() statement. Then you can access any of the object's properties, such as Source and Description:

<HTML>

<BODY>

<%

Dim ErrorInfo

Set ErrorInfo=Server.GetLastError()

Response.Write("Source: " & ErrorInfo.Source & "<BR>")

Response.Write("Description: " & ErrorInfo.Description & "<BR>")

%>

</BODY>

</HTML>

 

 

by Summer Doucet

Find more free Internet tutorials from Learnthat.com.

More Information:

Help us by rating this tutorial: [---] [--] [+] [++] [+++]
[---] lowest; [+++] highest

 

 

 


Learn: Free Tutorials - Links to Free Tutorials
Understand: Free Technical Definitions - ExplainThat Whitepapers
Use: Certification Section - Discussion Forum

Visit Our Network Sites:

DefineThat.com Technical Defintions Romancetips.com
Free Gift Ideas - GiveThat Planthat.com Free Unique Business Ideas
PublishOnDemand.net - Learn about Print on Demand (POD) - Self Publishing Seekthat.com - Technical Search Engine
ThatNetwork.com  

About Us : Contact Us : Advertise : Privacy Information

© 1998-2004 Learnthat.com