Click here to Skip to main content
16,004,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,

I am doing search functionality,It works but it takes more time then I have to stop that searching process.

I dont want to give timeout of sql command
I have "cancel search" button onclicking on that searching should stop.

Please suggest me.
Thanks
Posted

1 solution

You can execute your query on a background thread and then cancel it using the Cancel command - see here[^].

This discussion[^] may help you out.
 
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