Avatar of VBBRett
VBBRett
 asked on

Specifying which Sharepoint template to use in C#

I am developing a web part that creates a sharepoint site, creates a content database and I am supposed to be able to specify which Sharepoint template to use, but don't know how.  How do you specify which sharepoint template to use so that when the site is created, it takes on the appearance of the template?  There isn't much documentation on this anywhere that I look and I am clueless.  Any help would be great, thanks!
C#

Avatar of undefined
Last Comment
VBBRett

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
dyuburg

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
VBBRett

ASKER
I'm looking for a more streamlined approach with code in C#, if you could point me in the right direction, I'd appreciate it.  The STSADM tool is not what I'm looking for, this whole setup has to be deployed from a custom web part I am building
VBBRett

ASKER
Any way on getting some code for this solution?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23