SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

Building a Site Creation Webpart - How do you get a list of templates?
I am playing around with a webpart in my new VPC that will inevitably create a site based on what a user inputs to a combo box and a couple text boxes.  I can get the user to create the site if I hardcode in the id for the template name, however I want to get all the template codes and shove them into a combo box.  Then the user can choose which template they want.  My problem comes when I need to figure out what code is used to actually pull in the template code list to the combo box.  Has anyone experimented with the object model at all?  If so does anyone know how I would go about solving the problem I have or at least know of some website with some sample code?  After I am done with the template part I am going to work on a couple textboxes, where the user can input a couple usernames to add to this site.  Thanks for any help in advance.  If anyone would like me to post the code when I am done I will most definitely do so.

Posted 05-29-2007 3:20 PM by MOSSLover

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.