// archives

Set the SharePoint Default Page Programmatically

This tag is associated with 1 posts

Set the SharePoint Welcome Page through code

You might end up with this requirement quite often to set your custom page as a welcome page for site/subsite instead of default.aspx provided by SharePoint.
Its quite a tedious job to set up default pages manually when you have more than 10 site/subsites. Its pretty easy to do it programmatically. Here is how:
public [...]

    Locations of visitors to this page
View Praveen Modi's profile on LinkedIn

Recent Comments

  • fred: The above mentioned tips are helpful. However, by the use of a third-party caching solution for SharePoint you...
  • Ramiz Uddin: Praveen, I would need your help. I’m new on sharepoint and very much confused with its deployment...
  • Maarten: Hi! I tried your code, it works great. However, I don’t see the created folder in explorer view. How...
  • Praveen Modi: Juan, seems like it should work but I haven’t tried it. I will give it a try and will update the...
  • Juan Larios: couldn’t you just do: SPFolderCollection collection = site.Lists["Site Collection...