Shelbysys' C # and SQL Blog
I like to use this snippet in a catch statement to display an error to the user without stopping the applicationcatch (Exception ex) { lblErr.Text = string.Format("{0}", ex.Message); }
Tags: CSharp snippet Exception string.Format
CSharp
Get notified when a new post is published.
None
We develop custom database applications for our clients. Our development tool of choice is MS Visual Studio.