SharePoint

Add Web part programmatically through C#

The code below adds a web part programmatically on to a page

Reference link: https://social.msdn.microsoft.com/Forums/office/en-US/1bc7212c-385d-4a89-9b7e-9d37ee762017/add-webpart-on-sharepoint-page-programmatically?forum=sharepointdevelopmentlegacy

event_note
close

The code below adds a web part programmatically on to a page

Reference link: https://social.msdn.microsoft.com/Forums/office/en-US/1bc7212c-385d-4a89-9b7e-9d37ee762017/add-webpart-on-sharepoint-page-programmatically?forum=sharepointdevelopmentlegacy

Read more

Posted in Code behind
SharePoint

Create a Sub Site programmatically through C# with feature activation

Sometime we require creating a sub site programmatically. The sample code below creates a SharePoint Sub Site.

If you don’t know the GUID of the feature but you do know the name of the

event_note
close

Sometime we require creating a sub site programmatically. The sample code below creates a SharePoint Sub Site.

If you don’t know the GUID of the feature but you do know the name of the

Read more

Posted in Code behind