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!

Response.Redirect Problem

Status
Not open for further replies.

trent101

Programmer
Nov 4, 2005
50
AU
Hey,

My web site has a registration form that the user can submit. When they submit the form and there are no errors, I then add the data to my database. What I would also like to do is take them to a thankyou page.

I have tried using "Response.Redirect("thankspage.aspx")", however, I get an error when you submit the form. From what I can tell the error is saying that it cant find a text box which is defined in my registration page, in my thankyou page.

I know that this text box is not defined in my thankyou page, then how come it is looking for it?

From what I have read, it seems to me that using "Server.Transfer("thankyoupage.aspx")" would give an error similar to this, but I don't know why when using response.redirect, i get this error.

I thought all response.redirect did was take the user to another page....

Thankyou very much for your time in advance......
 
You are correct in your thinking. The error is strange. Did you for some reason change the action of the form to post to your thankyou page?

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top