tags:

views:

48

answers:

1

In my Program I'm calling a Stored Procedure through asynchronous call

connection.Open();
IAsyncResult ar = cmd.BeginExecuteReader();

While executing the Page, If I click back button Page will be redirected to other page but the front-end objects cannot handle the back-end processing.

How can I stop running the Stored procedure?

A: 

You should create SqlTransaction for the SqlProcedure, and cal the Rollback() method of it

VMAtm