SPWeb mySite = SPControl.GetContextWeb(Context);SPWebCollection subSites = mySite.Webs;string currentTemplate = mySite.WebTemplate;
string siteUrl = TextBox1.Text.ToString(); //you can use hard coded path herestring siteTitle = TextBox2.Text.ToString(); //you can use hard coded title for testing purposesstring
siteDescription = TextBox3.Text.ToString(); //use hard coded description for testing
subSites.Add(siteUrl, siteTitle, siteDescription, 1033, currentTemplate, true, false);
From SPS 2003 SDK
No comments:
Post a Comment