teufel
|
| Posted: 10/10/2002, 8:16 AM |
|
Very simple, yet I don't have a clue:
- I have a form which when submitted performs many custom database operations (deletes, inserts, etc.).
- If these operations ARE performed successfully the same page with the same form should be shown to the user, with the difference that a confirmation message stating that the operation COMPLETED SUCCESSFULLY should be shown to the user (either above the form or where the form error messages are shown).
- If these operations ARE NOT performed successfully the same page with the same form should be shown to the user, with the difference that a confirmation message stating that the operation DID NOT COMPLETE SUCCESSFULLY should be shown to the user.
I just need to add an URL parameter and grab its contents into my label or error template var, when the page reloads, but how to do that?
Any hints?
|
|
|
 |
Steve
|
| Posted: 10/10/2002, 11:06 PM |
|
One Possible Solutions. Let the page display as normal when transaction is successful. Rather Than use a URL parameter, use a session parameter. Place a lable on the form and in the before show event of the labe, set the label to the session variable and then empty the session variable.
I use this methodolgy in a couple of places and it works well.
|
|
|
 |
|