Error Messages in ASP

posted by Scudyen date: Thursday, May 22, 2008 category: ASP
  Featured Story | Printable View | Email It | Comments | Write Comment

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.  TO receive error message form server, we have used Server.GetLastError( ) method. Here is the sampel code.



<%
Dim objErrorMessage
Set objErrorMessage = Server.GetLastError
Response.Write("ASP Error Code = " & objErrorMessage.ASPCode)
Response.Write("ASP Error Description = " & objErrorMessage.ASPDescription)
Response.Write("Description = " & objErrorMessage.Description)
Response.Write("Line = " & objErrorMessage.Line)
Response.Write("Source = " & objErrorMessage.Source)
%>


Custom Search



Gazatem Technologies Active News Manager


page counter

Listed with 411asp.net
Listed with 4aspin.com
PHP, ASP, .NET, JSP Resources, Reviews