Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27355

VS 2008 Pass Exception Message to label on another page

$
0
0
I’m wondering once I catch an exception, how can I use the exception message in another page?
How can I pass this exception message into a label on another page? In order so I can have the exception message displayed with my own material. What is the best way to go about this?

Example:

Try

'logic in here

Catch ex As Exception

ex.Message 'pass this message of the exception so it can be used in a different page

End Try

Viewing all articles
Browse latest Browse all 27355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>