Disable Error On ASO Codes

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

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.

Let's see it in an example :




<%
for z = 0 to 10
with response
.write (z & "
")
end with

next
%>




This is a simple ASP code but contains some errors. If you try to start application, you will get an error page. But adding 'On Error Resume Next' function into our code, page will be displayed without an error message.




<%
for z = 0 to 10
with response
.write (z & "
")

On Error Resume Next
end with

next
%>




Try your ASP codes without error, but this is fact of programming !
Happy Coding


Custom Search



Gazatem Technologies Active News Manager


page counter

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