in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

This Blog

Syndication

Becky's Blog

This is Becky Isserman's Blog about her Sharepoint blunders and successes. She is an Admin/Developer at Terracon Consulting Firm in the Kansas City Area.
This blog has been moved to http://www.mosslover.com.

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.

Comments

No Comments

Leave a Comment

(required )  
(optional )
(required )  
Add

About MOSSLover

I am a Sharepoint and .Net Consultant working for a company based in the Kansas City Metro Area. I have been working Sharepoint since July 2005. I love to play World of Warcraft and discuss all things Sharepoint.

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts