Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

Am working with the thin client desktop application for "FINANCE CAPITAL MARKETS" using Web services.

As we are keeping database with our end, we are allowing clients to query our database through a query analyzer module which is developed by us, to get required data of theirs need.

So we are forming sql query from our query analyzer module and sending the string to execute in database via web method.

An average query make take several seconds to execute and return dataset. In case of queries having complicated JOINS, which returns huge amount of data may take several minutes to execute.

Let us assume, a client executing a complicated query and waiting for result, In between if he wants to cancel the query execution, I need to give a cancel button in the form..

What I have to do, to cancel the process and cancel the web request and make the application idle.


Please help me. Give idea.

Thanks in advance.
Peer Mohamed Mydeen.
Posted

1 solution

I don't think you can actually cancel the webmethod's process, but you can set a flag that tells the code that called it not to process the returned data (this is especially true of ansynchronous methods).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900