home screen

Search



Number Of Result : 0

Result :


Monday, April 12, 2010

Managed Path Prefix - SharePoint

- You want to create a new site collection whose prefix is not "sites"(ex: http://abc.com/your_prefix/newsite)
1/ you create new Managed Path Prefix: your_prefix
2/ create your site


using (SPSite site = new SPSite("http://abc.com"))
{
//create your_prefix
site.WebApplication.Prefixes.Add("your_prefix", SPPrefixType.WildcardInclusion);

//create new site with your_prefix
site.WebApplication.Sites.Add("http://abc.com/your_prefix/newsite", ... ) ;
}

No comments: