boldm28
Programmer
- Jan 29, 2009
- 2
Hi
I am a newbie to sharepoint programming and I have used Visual studio 2008 to develop a simple application
below is the code
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
namespace SiteCreation
{
class Program
{
static void Main(string[] args)
{
SPSite site = new SPSite(“SPWebApplication webApplication = site.WebApplication;
webApplication.Sites.Add(“/sites/TestNewSite”,
“New Test Site”,
“This is a new site added programmatically”,
1033,
“STS#0”,
@”mypc\Administrator”,
“Administrator”,
“anon@anon.com”);
Console.WriteLine(“New site created.”);
Console.ReadLine();
}
}
}
No when i compile it .. it shows a new site created
now how do i create or deploy this site to a sharepoint server
I am a newbie to sharepoint programming and I have used Visual studio 2008 to develop a simple application
below is the code
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
namespace SiteCreation
{
class Program
{
static void Main(string[] args)
{
SPSite site = new SPSite(“SPWebApplication webApplication = site.WebApplication;
webApplication.Sites.Add(“/sites/TestNewSite”,
“New Test Site”,
“This is a new site added programmatically”,
1033,
“STS#0”,
@”mypc\Administrator”,
“Administrator”,
“anon@anon.com”);
Console.WriteLine(“New site created.”);
Console.ReadLine();
}
}
}
No when i compile it .. it shows a new site created
now how do i create or deploy this site to a sharepoint server