Response.redirect

M

mjm

Am needing to make use of Response.Redirect in my FP 2002
application. All other (Response.xxxxxxx) codes seem to
work, but not Redirect. Always get an http 500 error on
execution of the code. Any thoughts??? Thank You
 
G

Guest

I have tried an assortment of code formats including the
one you gave me. Whenever I use the Response.Redirect ,
it just abends with the error. Even if I embed it in an
If/Then statement where it is not likely to get executed,
it abends.
 
G

Guest

Is there some formatting missing such as parens or commas
or quotes that need to be in place???? I just went back
and used exactly what you gave me, exactly, and it still
abends.
 
J

jon spivey

Hi,
you need quotes around the page, eg
<%
response.redirect "page.asp"
%>
or
<%
strPage = "page.asp"
response.redirect strPage

Jon
 
M

mjm

I will give that a try....thank you all so much.
-----Original Message-----
Hi,
you need quotes around the page, eg
<%
response.redirect "page.asp"
%>
or
<%
strPage = "page.asp"
response.redirect strPage

Jon




.
 
M

mjm

Very interesting....I like that site. Am going to try
the clear command...may very well be the issue here.
Thank You.
 
M

mjm

Well...as good as the code and procedure looked from
devguru.....just created a different error message.
-----Original Message-----
Very interesting....I like that site. Am going to try
the clear command...may very well be the issue here.
Thank You.
-----Original Message-----
Go to DevGuru and take advantage of their excellent Resource Guides.
SEE: http://www.devguru.com/

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET (e-mail address removed)
URL http://www.metromilwaukee.com/clintongallagher/
it
 
J

John Sitka

Does your error contain any detail?
90% of the time

<html>
<head></head>
<body>
stuff.....

<%Response.Redirect...%>

the above won't work

corrected

<%Response.Redirect...%>
<html>
<head></head>
<body>
stuff.....


You can wrap the whole <html></html> tag in a conditional statement if you
need to just don't send anything to the client previous to calling
<%response.redirect%>


mjm said:
Well...as good as the code and procedure looked from
devguru.....just created a different error message.
 
C

clintonG

Pay attention to what is stated in the 'Summary' of this Microsoft
article "HOW TO: Use Response Redirect in a Server Script"
http://support.microsoft.com/defaul...port/kb/articles/Q159/4/02.asp&NoWebContent=1

Review the many articles written about using the ASP Response object
Google "response.redirect"

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET (e-mail address removed)
URL http://www.metromilwaukee.com/clintongallagher/







mjm said:
Well...as good as the code and procedure looked from
devguru.....just created a different error message.
 

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

Top