Logo 
Search:

Sharepoint FAQ

Submit Interview FAQ
Home » Interview FAQ » SharepointRSS Feeds

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

  Shared By: Tarang Nayak    Date: Mar 12    Category: Sharepoint    Views: 597

Answer:

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


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

Share: 
 



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


Tagged: