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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.redirect/server.transfer

Status
Not open for further replies.

trc

MIS
Nov 27, 2000
126
CA
Hey kids.

I am building a form procesing page that emails the contents of the form to an email built into the form. Also built in to the form is a URL that is used as a redirect URL. I can process the form, email it to the proper address but I cannot get the response.redirect or server.transfer to work. It does not matter where the redirect is placed on the page. I have the response.buffer=true in the page so that is not an issue.

The first error I get is "Page cannot be found" After refreshing I get an error "Page cannot be displayed".

Is there something that I should know about the collection or processing the email.
 
Hi,

first of all I think Server.Transfer only uses
relative URLs as an argument - it does
not let you use "
As for Response.Redirect, it would be helpful to see
at least the part of code where you use it.
<Dmitriy>
dbrom@crosswinds.net
 
In reguards to the response.redirect I had a similar issue, where it wouldn't redirect (kept giving me an error about http content already having been written).

I was told to put response.clear right after the response.buffer = true
And my redirection seems to be working fine.

Chuck
 
Well thank you so much for all of the help. It has been great. I did try the redirect in a different page before posting the original message. It did not work. I wound up building a function that seems to vhae taken care of it. Do I know why? No. But it works hey.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top