Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

My Sharepoint item adding, item added, item updating,item updated event handler is firing twice

$
0
0

Hi,

Iam using custom permissions/groups for the lists in my site.

In the receivers i am using hashtable with key as list name and value as group name.like below

public override void ItemAdding(SPItemEventProperties properties)
       {

Hashtable ht = new Hashtable();
           ht["Students"] = "Student Members";
           ht["Employee"] = "Employee Members";

foreach (DictionaryEntry de in ht)
           {
               if (properties.ListTitle == de.Key.ToString())
               {
                   //logic for email
               }

}

}

Not sure why my event handler is executing twice..Can some please help on this issue?

Thanks

Usha


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>