C# How do I catch an exception and check if it contains a string?
- by lisa
Hi all,
I'm getting an exception which says "Access Denied" when the users permissions are sufficient, how do I catch an exception and check for "Access Denied" so that I can show the user a friendlier "Sorry Access Denied" message?
Thanks
Beginner :-)