WebProvisioned event in SharePoint 2010
This is event comes with SharePoint
2010, that allows us to execute something when a sub site in the site
collection get created. Here we will see an example that will change the Theme
of the sub site whenever the sub site will get created. A point to remember is
this event does not fire when the root web site of a new site collection is
created. This method can be configured to operate in either synchronous or
asynchronous modes. And this can be set in Synchronization tag in the
Elements.xml file. To do this we have create an event receiver and we have to
write code in the Web Provisioned event, that will responsible to change the
Theme of the newly created site.
Comments