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


On Elements.xml, use ListUrl instead of ListTemplateId


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: http://techtrainingnotes.blogspot.com/2008/01/sharepoint-registrationid-list-template.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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