2736Error Messages in ASPhttp://www.dotnetindex.com/articles/3522_Error_Messages_in_ASP.aspProblems and coding syntax mistales can been in every serverside application. Security of application is very important. You should need to understand what's going wrong in deep of an apllication. This sample of code is an easy to use an error handling message writer. .ASP > Tips and Tutorials > Error HandlingOct 10, 2006Dotnetindex.com
The error class, CError, allows you to display a custom dialog box with the option to have a detailed message, a general message, and log the error in a file for later reference. It also uses some JavaScript and DHTML to allow the user to drag the dialog box around. But since this article is more about the Error Handling that will not be discussed.
Everyone has seen an HTTP 404 error at some point. You follow a link on a web page, and BOOM - File not found. Perhaps the author spelt it incorrectly, or the page was uploaded to the server by mistake.
Unexpected errors can stop programs and your application coul be down immadiately. But 'On Error Resume Next' funtcion help you to avoid to stop unexpected errors on code. All you need to put this code after a code block.
Did I tell you I love the new ASP Error object? It finally enables developers to control page execution. This object is used to retrieve details of the last error that occurred within an ASP page. Combine that with the ability to create custom error pages, and you have a pretty powerful tool within the development shack.
Problems and coding syntax mistales can been in every serverside application. Security of application is very important. You should need to understand what's going wrong in deep of an apllication. This sample of code is an easy to use an error handling message writer. .
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.