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

after submit return to asp page

Status
Not open for further replies.

smurf01

IS-IT--Management
Jul 6, 2002
470
GB
Hi,
I have an asp page (MCdata.asp) that extracts data via a recordset, I have a repeat region for all records, these records relate to machine numbers. The field for the machine numbers is set so that when any of the numbers are clicked then the user is taken to another page (MCdatachange.asp) which holds an update form which is populated with data relating to the machine selected, from here the user can change data and submit to the appropiate table in the DB. So for instance on the first page the user selects machine number 201 and the link shows as follows


this works fine and the form is populated with the correct info, after the user has amended their data then they submit the form, I then have the page set so that after updating it goes back to the original page (MCdata.asp)however when I do this I get a message telling me the page cannot be found and the reason is that it is using the above link i.e
when |I actually want it to return to

Could anyone explain to me why this is happening and what to do to correct it

Regards

Paul
 
On the asp page that handles the form your user(s) submit, add this at the end of it

Code:
response.redirect "MCdata.asp"
 
DeCojute,
Where exactly would I put this code in the head or the body

Regards

Paul
 
When I do this all that happens is that when i call my asp page with the form on it, instead of showing the form page it just returns to my original page

Regards

Paul
 
It's Ok I have sorted it now. I am using dreamweaver to code the page for me and for some unknown reason it was not adding the appropiate page into the

MM_editRedirectUrl =

I have added the page to the line manually and it works fine now

Regards

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top