This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
Microsoft ASP
The ASPError.File Property
The ASPError.Description Property
The ASPError.Column Property
The ASPError.Category Property
The ASPError.ASPDescription Property
The ASPError.ASPCode Property
The ASPError Object
Base64 for VB and ASP
ASP to OLEDB
Re: How to pass values into an XSLT stylesheet from ASP
How to pass values into an XSLT stylesheet from ASP
ASP Create Yearly XML Calendar
XML Strengths & Weakness’ with DOM, ASP & XSL
FAQ - My ASP MSXML transformation always outputs UTF-16?
WAP with ASP - starting the WAP adventure
ASP/XML Guest Book
Include an ASP-file in XSL (JITIC Solution)
Read/write data with VB using ASP pages
<< LAMP
 

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :1131

 

The ASPError.Line Property

Introduction

The ASPError.Line property can be used to return the line, which caused the error in an asp file. It can be useful to use the property column with the line property. That way you will also get the column position of the error. The following example demonstrates it.

Example of custom500.asp

<%

            Dim objASPError

            Set objASPError = Server.GetLastError

            Response.Write("Line = " & objASPError.Line & "<br/>")

            Response.Write("Column = " & objASPError.Column & "<br/>")

%>

Example of a simple asp page to generate an error

This example will return the line 3 and the column 9.

<%

            ' Initialization

            Dim test = 10

%>

Output


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP