I'm using an IF statement to check for a valid data type, and redirecting to another page (url stored in a variable) if its invalid. I'm getting an "Expected Statement" error when I use "End If", and I can't figure out why...ideas?
Thanks!
Code:
If vartype(Request.Form("quantity")) <> "2" Then Response.Redirect ReDir3
End If
Error:
Microsoft VBScript compilation error '800a0400'
Expected statement
/test/newsln/new_post_sln.asp, line 41
End If
^
Thanks!
Code:
If vartype(Request.Form("quantity")) <> "2" Then Response.Redirect ReDir3
End If
Error:
Microsoft VBScript compilation error '800a0400'
Expected statement
/test/newsln/new_post_sln.asp, line 41
End If
^