Redirect Help

M

Mangler

I thought I was doing this right but apparently I'm not as I keep
getting an error " object required "....

I am trying to redirect someone if a record set value is not equal to
something; here is what i have:

<%
If rsSec.Fields.Item("program").Value <> "Employee" Then
Response.Redirect "accessdenied.asp"
End If
%>

What am I doing wrong here? I the query returns a result when I
tested it out but the " object required " error keeps displaying....
 
A

Anthony Jones

Mangler said:
I thought I was doing this right but apparently I'm not as I keep
getting an error " object required "....

I am trying to redirect someone if a record set value is not equal to
something; here is what i have:

<%
If rsSec.Fields.Item("program").Value <> "Employee" Then
Response.Redirect "accessdenied.asp"
End If
%>

What am I doing wrong here? I the query returns a result when I
tested it out but the " object required " error keeps displaying....

Object required sounds like a JScript error to me.

Where does it display? In the browser client window or in a message box?

Have you tried visiting accessdenied.asp directly using a browser?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top