I am using one asp.net application where i used master page and content page. In one of the content page i am loading one grid which contains more data, And in master page i used update panel to show progress bar image with cancel button. Now when i am loading the grid on content page then progress bar is showing with cancel button. For clearing progress i have written loader image to hide on cancel click button in javascript which is working fine.
But my process is still running How do i cancel this process on click on cancel button. Below is the method which triggered when click master page button.
private void ViewReports(string someFilterCondition)
{
//Business logic to get data from db.
}
When this method called in business logic taking more time. When click on cancel button it hides the loading image but user don't know whether the process is cancelled or not and after sometime when he got the loaded gridview then knows that process was still running. How do i cancel the current process?