Google Analytics İzleme

21 Eylül 2011

Asp içinde hata yönetimi - Error Handling in ASP

Gerekli yazım örneği:

 <%
Dim i
' Turn on error Handling
On Error Resume Next


'
Code here that you want to catch errors from

' Error Handler
If Err.Number <> 0 Then
   '
Error Occurred / Trap it
   
On Error Goto 0 ' But don't let other errors hide!
   
' Code to cope with the error here
End If
On Error Goto 0 '
Reset error handling.

%>

Is try-catch like error handling possible in ASP Classic?

Error Handling in ASP

Implementing Error Logging in ASP 3.0


How To Use On Error Resume Next

ASP and the Error Handler


Hiç yorum yok: