H
Henry
Hello,
I have a question about ASP.NET process. In this case:
Try
'SOME CODE
Response.Redirect("some_asp_page.aspx")
Catch obj_Exception as Exception
Throw obj_Exception
Finally
If Not (obj_Conn Is Nothing) Then obj_Conn.Dispose()
End Try
I wonder if ASP.NET reaches the finally part of the code or does it redirect
and neever reaches the finally statement?
Or should write something like this?
Try
'SOME CODE
Catch obj_Exception as Exception
Throw obj_Exception
Finally
If Not (obj_Conn Is Nothing) Then obj_Conn.Dispose()
Response.Redirect("some_asp_page.aspx")
End Try
Which one should I use?
Thanks in advance?
Henry
I have a question about ASP.NET process. In this case:
Try
'SOME CODE
Response.Redirect("some_asp_page.aspx")
Catch obj_Exception as Exception
Throw obj_Exception
Finally
If Not (obj_Conn Is Nothing) Then obj_Conn.Dispose()
End Try
I wonder if ASP.NET reaches the finally part of the code or does it redirect
and neever reaches the finally statement?
Or should write something like this?
Try
'SOME CODE
Catch obj_Exception as Exception
Throw obj_Exception
Finally
If Not (obj_Conn Is Nothing) Then obj_Conn.Dispose()
Response.Redirect("some_asp_page.aspx")
End Try
Which one should I use?
Thanks in advance?
Henry