Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using the WebDeleting event which is based on features. Just activate the feature, and whenever a web is getting deleted, the event handler throws a message saying "Web can't be deleted".

Everything works fine for all the existing sites. But suppose a client adds 5-10 sites? How should I go about attaching the event handlers to new sites which are created?

I thought of going for Job Schedulers which work on attaching every minute or second.. Or is there another approach? Please provide links if any.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

It sounds like you want to use Feature Stapling to bind your feature to new sites.

share|improve this answer
    
i tried Stapling . . it worked g8 . . thanks –  Nikhil May 23 '10 at 13:55

Your Answer

 
discard

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.