SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how can I add an event receiver to the style library ? (can't find any templateid)

share|improve this question

migrated from Dec 17 '11 at 16:37

This question came from our site for professional and enthusiast programmers.

It has the same id as document library - 101 – Nitin Rastogi Dec 13 '11 at 13:18
how to differentiate them for the event receiver ?? – user1014732 Dec 13 '11 at 13:18
See this for more details. Since you only want to attach to Styles Library, you will have to attach using code -… – Nitin Rastogi Dec 13 '11 at 13:21

On Elements.xml, use ListUrl instead of ListTemplateId

share|improve this answer

A style library uses the document library template (101), so that is the ID you use to create an event receiver.

The following link provides a detailed list of template ID's for registration:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.