Forums
This topic is locked
IF...THEN restrict access page
24 Oct 2006 22:37:25 Wim Conix posted:
Hello,Now trying to restrict access to page with hand coding IF...THEN but getting error :
Runtimefout Microsoft VBScript error '800a01a8'
Object vereist: ''
/image-belle/asp/images/upload_large/upload_01.asp, line 10
Line 10 :
<% IF NOT(rs_author.Fields.Item("Level".Value < 3 OR rs_author.Fields.Item("Level".Value > 12) THEN Response.Redirect "upload_login_error.asp" END IF %>
Should check the IF...THEN and do the redirect if true, go through the rest of the page if false.
Any help would be appreciated !
Thanks,
Wim
Wim Conix
www.image-belle.com
Replies
Replied 24 Oct 2006 22:46:30
24 Oct 2006 22:46:30 Wim Conix replied:
Replied 25 Oct 2006 15:32:01
25 Oct 2006 15:32:01 Wim Conix replied:
Problem solved !
I had put the IF...THEN before the recordset was created.
Couldn't retrieve the level value.
Placed after recordset creation, and works fine now...
Thanks for reading anyway...
Wim
Wim Conix
www.image-belle.com
I had put the IF...THEN before the recordset was created.
Couldn't retrieve the level value.
Placed after recordset creation, and works fine now...
Thanks for reading anyway...
Wim
Wim Conix
www.image-belle.com