GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP
Go To First  |  Previous Question  |  Next Question 
 ASP  |  Question 8 of 146    Print  
How to handle Error in ASP
A. Using On Error Goto <ErrorPart>
B. Using On Error Resume
C. Using On Error Resume Next
D. Using On Error Goto 0



  
Total Answers and Comments: 4 Last Update: February 26, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: kiran
 
C . Using On Error Resume Next

Above answer was rated as good by the following members:
satyanis1
May 28, 2005 06:43:52   #1  
kiran        

RE: How to handle Error in ASP
C . Using On Error Resume Next
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 16, 2005 20:28:08   #2  
Saurabh Gupta        

RE: How to handle Error in ASP
Using on error resume next.
 
Is this answer useful? Yes | No
January 24, 2006 04:47:45   #3  
chinnalogica Member Since: January 2006   Contribution: 6    

RE: How to handle Error in ASP

Hello,

The option should be A and not C.

The question was hot to handle error in ASP. On Error GOTO <ErrorPath>

The below example records any error occured in the code. Hence the answer for the above question is A.

On Error GoTo DisplayErrorInfo
  cn.Provider = "sas.localprovider.1"
  cn.Properties("Data Source") = "c:\testdata"

  cn.Open
  rs.Open "lostDataset", cn, adOpenDynamic, adLockOptimistic, ADODB.adCmdTableDirect
  rs.Close
  cn.Close

DisplayErrorInfo:
  For Each errorObject In rs.ActiveConnection.Errors
    Debug.Print "Description :"; errorObject.Description
    Debug.Print "Number:"; Hex(errorObject.Number)
  Next


 
Is this answer useful? Yes | No
February 26, 2007 07:09:55   #4  
shweta        

RE: How to handle Error in ASP
Option A is right answer.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape