This topic is locked

Edit Record Confirmation Page

1/8/2004 9:03:42 PM
ASPRunnerPro General questions
Becca author

Hi!!
Is it possible (and if so, where should I look) to route a user to a confirmation page after they edit / add a new record? (E.G, send them to a customized page or perhaps back to the main page of my web-site?)
Thanks!!
Becca

Sergey Kornilov admin 1/12/2004

Becca,
you can do this by editing ..._edit.asp page. See my changes in bold.
To redirect after Save:

LogInfo(strSQL)

dbConnection.Execute strSQL

Call ReportError

Response.Redirect "http://www.google.com"'>http://www.google.com";

message="<div class=message><<< Record was saved >>></div>"


To redirect after Add:

LogInfo(strSQL)

dbConnection.Execute strSQL

Call ReportError

Response.Redirect "http://www.google.com"'>http://www.google.com";

message="<div class=message><<< Record was added >>></div>"


Best regards,

Sergey Kornilov

Pete M 4/24/2004

Hi Sergey,
I'm trying to re-direct users back to a user-filtered list after saving a record.
If I put in the url then all users records are displayed.
In effect, I'm trying to save the user having to click the 'Back to List' link after they have saved.
Thanks
Pete

Sergey Kornilov admin 4/25/2004

Pete,
instead of Response.Redirect "http://www.google.com"; in my previous post you can the following code snippet:

LogInfo(strSQL)

dbConnection.Execute strSQL

Call ReportError

%>

<script>

document.forms.frmAdmin.submit();

</script>

<%


message="<div class=message><<< Record was saved >>></div>"

Pete M 4/25/2004
K
kconzel 1/7/2007

I would like to redirect after add/edit to a "confirmation" page made out of the "view" page that gives the information just input.

Table = SignOff and Field = RecId

I figure you use a max but too new to know more.

Thanks for any help you can be.

Y'all are incredible.

Becca,

you can do this by editing ..._edit.asp page. See my changes in bold.
To redirect after Save:
To redirect after Add:
Best regards,

Sergey Kornilov

Sergey Kornilov admin 1/7/2007

Do not hijack three years old thread. Many things are totally different now.
Start a new thread with a claer description of what kind of problem you facing.