Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Top Level Site verification

  Asked By: Joshua    Date: Nov 29    Category: Sharepoint    Views: 963

Is there a way in code to determine whether you are on the Top Level site ( Site
Collection ) verses on a lower level site?



1 Answer Found

Answer #1    Answered By: Julia Washington     Answered On: Nov 29

There is no specific property or method to check, but you could easily
instantiate the site  collection and compare the RootWeb.Url to the Url property
of the current SPWeb objec t. It they are the same its the Top Level site,
otherwise its not.

Didn't find what you were looking for? Find more on Top Level Site verification Or get search suggestion and latest updates.