CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 What event should I chose?

Print topic Send  topic

Author Message
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?
View profile  Send private message
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
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.