Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











Property:  Err.Source

Implemented in version 1.0
 
object. Source [ = string]

This property lets us determine the object or application that caused an error, and returns a string that contains its Class name or programmatic ID. Also used when generating errors in your code to identify your application as the source, using the optional [ = string] argument, as below.

Code:
<%
On Error Resume Next
Err.Raise 8    'raise a user-defined error
Err.Description = "My Error"
Err.Source = "MyAppName"
Response.Write "An Error of the type '" & Err.Description & "' has been_
                         caused by '" & Err.Source & "'."
%>

Output:
"An Error of the type 'My Error' has caused by 'MyAppName'."


 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information