epidos
Posts: 20
|
| Posted: 11/01/2006, 7:46 PM |
|
I want to execute a custom code after the submit in editable grid, so I chose after submit event but it seems delete, update and insert that effects editable grid are executed after the submit event, so my code gives wrong result.
If I chose the after insert, delete and update event then I am executing my code 3 times. How can I execute my code after all the operation in editable grid are done?
|
 |
 |
kevind
Posts: 251
|
| Posted: 11/04/2006, 5:18 PM |
|
i use 2.3.x
how about this - add code to the server side on-click event of the Submit button to temporarily set a session variable value like:
Session("AllDone")=True
and then on the page unload ?? or if the current page is the return page, put it in the Before Show event and look for the Session value, process the custom SQL, set the Session value to Nothing
Session("AllDone")=empty
kevind
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
epidos
Posts: 20
|
| Posted: 11/05/2006, 3:23 AM |
|
Quote kevind:
i use 2.3.x
how about this - add code to the server side on-click event of the Submit button to temporarily set a session variable value like:
Session("AllDone")=True
and then on the page unload ?? or if the current page is the return page, put it in the Before Show event and look for the Session value, process the custom SQL, set the Session value to Nothing
Session("AllDone")=empty
kevind
Thank you. I did what you suggested and it worked. It seems there is a bug in aftersubmit and it actually do the operation before records are submitted.
|
 |
 |
|