473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Redirect Help

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....

May 8 '07 #1
2 1287

Nevermind! I had that code before the query on the page,,,,, DUH!

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....

May 8 '07 #2

"Mangler" <dw******@aspdevil.comwrote in message
news:11**********************@y5g2000hsa.googlegro ups.com...
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?

May 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
6
by: Peter Row | last post by:
Hi, I am writing a DLL in VB.NET that implements IHttpHandler.ProcessRequest. This code calls a sub and I need to know if that sub did a response redirect or not. Specifically I need to know...
56
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my...
3
by: Sarah | last post by:
I was wondering if someone might be able to help me with this issue. I have a feeling this has something to do with my host's server settings as I used to be able to get CURL to follow redirects by...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.