How to detect input string is not in correct format in c# codes?
<p>is there any way to easily implement to scan through the C# web application codes to see if the input fields has handled the error: "input string is not in correct format "?</p>

<p>Logically it should display a user friendly error message instead of redirect user to a server error page displaying: "input string is not in correct format "</p>
