Create sub site programmatically in SharePoint 2010

Sometime we require creating a sub site programmatically in code. Here is the simple way you can create a sub site programmatically. (SPSite site = new SPSite(http://siteCollectionUrl))   { using (SPWeb web = site.OpenWeb())         {try             { web.AllowUnsafeUpdates = true;                //Create new web site                SPWeb newWeb = site.AllWebs.Add("Site url", " Site name", "Site description", 1033,

Modify web.config settings on feature activation in SharePoint

In SharePoint 2010 there is a way to modify web.config settings file. You need to use SPWebConfigModification class which is a part of Microsoft.SharePoint.Administration namespace. This class allows us to register entities dynamically. Adding new settings in web.config I am going to use SPWebModification class inside “Feature Activating” method of SharePoint feature to register a

Embed YouTube video in SharePoint 2010

Some time you need to add YouTube videos in your SharePoint site pages, it is very simple to implement. I’m going to show step by step how to embed YouTube videos in SharePoint 2010 site, using content editor web part. 1.   Go to YouTube video which you want to embed and copy the video embedded

KeaPoint Ltd

Copyright © KeaPoint Limited

Registered in England: 11586817