Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error with Reponse.Redirect

Status
Not open for further replies.

hxx

Technical User
Oct 26, 2000
10
MY
I got this error with my code but i don't know what's wrong. i don't understand why the response object could not be supported. The error is:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'Response.redirect'

/couguidefm1asp.asp, line 23

(the line is not quite accurate as i've deleted portion of my code)

---------------------------------------------------
My code is as follows:

<%@ Language=&quot;VBScript&quot;%>
<% Response.Buffer=true %>

<%
if (Request.Form.Item(&quot;stream&quot;) = 1) AND (Request.Form.Item(&quot;level&quot;) = 1) then
Response.Clear
response.redirect=&quot;elseif (Request.Form.Item(&quot;stream&quot;) = 2) AND (Request.Form.Item(&quot;level&quot;) = 1) then
Response.Clear
Response.Redirect=&quot;couguidefm2_spmsc.htm&quot;
end if
%>

<html>
<body>

<% Response.End %>
</script>
</body>
</html>

--------------------------
What is the error all about? Does it mean that it really could not support the object or there is other reason? Is anything wrong with my code?
 
The correct syntax for Response.Redirect is:

Code:
Response.Redirect &quot;couguidefm2_spmsc.htm&quot;

There shouldn't be any equal(=) signs. See if this fixes your problem.

Choo Khor
choo.khor@intelebill.com
 
well your syntax for response.redirect is wrong. correct one is

Response.write &quot;couguidefm2_spmsc.htm&quot;

one other thing........u dont use &quot;;&quot; at the end of line in VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top