New Posts New Posts RSS Feed - Lock the other pages to non members!
  FAQ FAQ  Forum Search   Register Register  Login Login

Topic ClosedLock the other pages to non members!

 Post Reply Post Reply
Author
Bazza View Drop Down
Guest Group
Guest Group
Direct Link To This Post Topic: Lock the other pages to non members!
    Posted: 24 Jan 2007 at 2:28pm
Hello scotty.
 
Firstly Great site
 
Ok i have tried to get the "lock out no members to other pages" mod thing, and i cant get it to work..  I entered it exactly like you said:
 
Quote <%
<!--#include virtual="/forum/common.asp" -->

<%
If lngLoggedInUserID = 2 then
   Call closeDatabase()
   response.redirect("/forum/login_user.asp")
End If

%>
 
i have tried it with and without the "close database" and the "redirect" 
Im currently learning ASP so i might be a bit slow and have missed something, I added it to my index.asp and had to take it off because it said there was an error on line 6 "<%" is on line 6!!
 
Cheers mate!
 
Bazza
Back to Top
Matt View Drop Down
Admin Group
Admin Group


Joined: 07 Feb 2003
Location: Manchester, UK
Status: Offline
Points: 195
Answer Answer
Direct Link To This Post Posted: 25 Jan 2007 at 1:47pm
am very sorry, i did a mistake, you need to remove the first <% from it, as that isnt ment to be there.

so it looks like this:

<!--#include virtual="/forum/common.asp" -->

<%
If lngLoggedInUserID = 2 then
   Call closeDatabase()
   response.redirect("/forum/login_user.asp")
End If

%>

Back to Top
Bazza View Drop Down
Guest Group
Guest Group
Direct Link To This Post Posted: 26 Jan 2007 at 4:13pm
Thanks scotty!!
 
I should have known it was something simple!!
 
 
Bazza!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.