none
SPSite Leveling RRS feed

  • Question

  • Can i get second level site as SPSite? Or only root level sites can be SPSites, and everything else is SPWeb? )

    I mean when i try to get

    SPSite launchsite = new SPSite(http://localhost/lvl1site);

    i get just localhost with no lvl1site.

    Tuesday, September 28, 2010 8:51 AM

Answers

  • SPSite Class represent Site Collection and SPWeb website, It means there will be many websites under one site collection. So second level sites are only SPWeb not SPSite.

    Regards, Sandip Patil, .Net,Sharepoint Developer www.worldofsharepoint.com
    • Proposed as answer by .Net Frenzy Tuesday, September 28, 2010 9:09 AM
    • Marked as answer by e v e r n i t e Tuesday, September 28, 2010 9:40 AM
    Tuesday, September 28, 2010 9:06 AM