Author: rgn2121 | Posted on: 7/10/2008 1:15:52 PM | Views : 1019

I have written an email class just to simplify and hide most of the normal email code that you would have in a aspx.vb or .cs page and I was curious about handling my exceptions in the class.

If I have something like:

Try

smtp.send(mailMsg)

catch ex as exception

'Some code

end try

What do I need in the some code section to be able to do a response.redirect("url")? 

Do I throw the ex or throw a new exception, or do I need to raise an event?

 

Thanks...
...

Go to the complete details ...