O
Ori
Hi,
I have a wired problem.
I have a code block in my code (ASPX file) which I need to force it to
be transactional.
I'm doing the following:
1. for each one of the items
i. Add record to the table which indicate that a transaction has been
completed successfully. (X)
ii. Set a variable inside the object which flag that the user already
pay (Y)
2. Set the object inside the session.
My problem is what happen if my code is failed between X & Y. In this
case I already "charge" the user in the database, but I didn't set the
flag which indicate that the user already pay for the service.
Do I have a way to force those to lines to be under the same
transaction? Or any better idea to solve this problem?
Thanks,
Ori.
I have a wired problem.
I have a code block in my code (ASPX file) which I need to force it to
be transactional.
I'm doing the following:
1. for each one of the items
i. Add record to the table which indicate that a transaction has been
completed successfully. (X)
ii. Set a variable inside the object which flag that the user already
pay (Y)
2. Set the object inside the session.
My problem is what happen if my code is failed between X & Y. In this
case I already "charge" the user in the database, but I didn't set the
flag which indicate that the user already pay for the service.
Do I have a way to force those to lines to be under the same
transaction? Or any better idea to solve this problem?
Thanks,
Ori.