I need to show the InnerException message if there is one and if not then i need to show the Message of the primary exception
Here's what i've got
Dim err As System.Exception = Server.GetLastError
If err.InnerException.Message = "" Then
Dim ErrorDetails As String = err.Message
Else
Dim ErrorDetails As String = err.InnerException.Message
End If
But i'm getting errors
Any ideas?
Thanks
Jamie