Can anyone tell me that how can i disable an event receiver on one SharePoint list while adding an item in other?
For example i want to disable event receiver on list B while i add item in list A.
I have event receiver registered on both the list. What happens is when i add item in List A the event receiver for this list gets triggered and adds item in List B but on the same time the event receiver on List B gets triggered and adds item in list A,this creates an infinite loop.
i want to break this loop such that when an item is added in list A it disables the event receiver on list B and stops the loop.
how can i do that ?