Click here to Skip to main content
15,894,720 members
Articles / Programming Languages / C#

Automate Template Upload and Site Creation in SharePoint

Rate me:
Please Sign up or sign in to vote.
3.50/5 (3 votes)
20 Apr 2008CPOL3 min read 45.3K   259   22  
This article describes how a site template can be uploaded and a new site can be created with the SharePoint Object Model.
using System;
using System.Collections.Generic;
using System.Text;

namespace SiteCreationAutomation
{
    class Constants
    {
        /// <summary>
        /// Site Tempalte Gallery name in sharepoint
        /// </summary>
        public const string SITETEMPLATE_GALLERY_NAME = "Site Template Gallery";
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect ImpleVista Aps
Denmark Denmark
Sohel has more than six years of experience in professional software development with extensive involvement in Web based Object-Oriented, Multi-Tiered application design and development. He's Familiar with Test Driven Development (TDD) and refactoring techniques as well as having expertise in architecturing large enterprise applications. He has Experience in working with Content Management System and Portal Management System tools like SharePoint, DotNetNuke, Ektron.

Over last few years, he’s involved in development with projects on Microsoft SharePoint and received Microsoft MVP for SharePoint Server Development in the year 2011 and 2012. Currently he's working in a software company located Copenhagen,Denmark on a project integrating SharePoint and SAP. You can read his popular blog at: http://ranaictiu-technicalblog.blogspot.com

Comments and Discussions