I am trying to catch error using following method.
Set objASPError = Server.GetLastError
It is not returning any error message and also it is displaying next part
of the calling page.
If I use following statement, variable not found is displayed.
Err.Description
Why it is so?
-Savi
Sub HandleErrors(sScript,sFunction)
Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP
'if Not Err.Number=0 then
' response.write Err.Description
'end if
Set objASPError = Server.GetLastError
If objASPError.Number<>0 Then
Response.Write "sdfsdf"
Response.WRITE (objASPError.line)
End If