This topic is locked

Edit records.

3/6/2009 4:02:55 PM
ASPRunnerPro General questions
E
ErinSigma author

After a user logs in, I redirect the user to an edit page so they can complete the regstration process (I set a boolean flag in the registration form that is hidden).
This all works and if the user saves the edit, I update this boolean (and another) field indicating success (for future logins) and redirect them to the list page and only for their own account. Again, this all works like a charm.
Now, if the user cancels the edit, I want to send them back to the login page after displaying a message. The message part I can figure out, but I can't seem to figure out where to trap the cancellation.
If anyone has an idea I would appreciate it.
thank you

J
Jane 3/10/2009

Erin,
you can edit Back to list button in theEdit page: Before display event on theEvents tab:

xt.assign "backbutton_attrs","onclick=""alert('your message here');window.location.href='login.asp?a=logout'"""