Sharepoint FAQ

 
Home » Interview FAQ » SharepointSubmit FAQRSS Feeds

How could you append a string to the title of a site when it is provisioned?

  Shared By: Tarang Nayak         Date: Mar 12, 2011      Category: Sharepoint      Views: 134      

In the OnActivated event:
Select For Unformatted Code
C#:


1. SPWeb site = siteCollection.RootWeb;
2. site.Title += "interview";
3. site.Update();

Tagged:                            

 


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].