I have a event called dataTree_AfterSelect in which I have some code which I want to execute as atomic operation like this:
Expand|Select|Wrap|Line Numbers
- protected void dataTree_AfterSelect(event params)
- {
- code that should not be disturbed
- }
What I want is, user should be able to click on tree node but execution of code block should only start after first execution is totally over.
How can I do this using thread? or non-thread solution is also appreciated.
Please note that my function is UI event.
Thanks in advance.
zacksoniar