HTTP 404 Error when redirecting - TechRepublic
General discussion
May 15, 2003 at 08:55 PM
munrrob

HTTP 404 Error when redirecting

by munrrob . Updated 23 years ago

I have some SUBMIT buttons which cause the following to run:

if NOT isempty(Request.Form(“NewReport”)) then
strRedirect = “./FieldSelection.asp?ViewName” & Request.Form(“ViewName”)
Response.Redirect strRedirect
elseif NOT isempty(Request.Form(“ExistingReport”)) then
strRedirect = “./AmendReport.asp?ReportName=” & Request.Form(“ReportName”)
Response.Redirect strRedirect
elseif NOT isempty(Request.Form(“Home”)) then
Response.Redirect “../default.asp”
end if

Unfortuenately, whenI press a button I get an http 404 error stating the page cannot be found. The redirects work if they are outside the button code then the redirects work.

Any ideas?

This discussion is locked

All Comments