PDA

View Full Version : ASPError Object


Bluemonkey
06-09-2003, 12:40 PM
i am doing the section on ASPError Object at http://www.w3schools.com/asp/asp_ref_error.asp

by when i run the page i get the error page made by windows not the page that i made from the code in the example i get the error

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/dev/errortest/error.asp, line 6

dim i for i=1 to 1 next
------^


but thats not what i should get.

how do i get it to work?

thanks for the help

raf
06-09-2003, 01:19 PM
What if you include this on top of the asp-code:

On Error Resume Next

Bluemonkey
06-09-2003, 05:15 PM
nope still gives me the standerd error page.

Bluemonkey
06-10-2003, 03:47 PM
i have got it to work now but the only way i got it to work was tell iis this page is the 500 error page. but w3schools doesnt say this. so not sure if there is another way.

Roy Sinclair
06-24-2003, 05:06 PM
This is supposed to be TWO lines:

Not:
dim i for i=1 to 1 next

Instead:
dim i
for i=1 to 1 next

raf
06-24-2003, 09:28 PM
It's even supposed to be 4 lines:

dim i
for i=1 to 1
statements
next


But that would be just useles since it would be the same as
statements