Add event Reciver to sharepoint 2013 List :

vs2013 ==> new project ==> sharepoint 2013 empty project ==> select farm level deployment ==> right click project file and add new item ==>select event listener ==>select list type as custom list or any approiate one you are working with and say ok
now you will see bunch of files  and among these emelant.xml is where you configure to which list this eventhandler have to be pointing to so .

look at top part of element.xml and you should see 
 <Receivers listtemplateid="100">

replace this with 
 <Receivers ListUrl="Lists/Yourlistname">


thats it now run your applicationa and when you run it you can go and look at manage site features and you should see this feature in the list as activated . so ad a new item and add break point to check if the evnt is captured or not .

Comments

Popular posts from this blog