Archive for September, 2008
SharePoint Custom Templates and Language Packs
0 Comments Published September 10th, 2008 in Programming, SharePointRecently I’ve been working a lot with the SharePoint standard templates. A client wanted us to build a Web Part that had the look and feel of a standard SharePoint Web Part and the easiest way to achieve that was using templates. Using these, we didn’t have to worry about custom fields, save buttons, validation […]
Loading SharePoint templates from a different location
1 Comment Published September 1st, 2008 in Programming, SharePointIn his excellent post on How SharePoint 2007 Renders Its Content Geoff McElhanon shows how to programmatically load SharePoint-based templates. The code he shows us is as follows: 1 2 3 4 5 6 7 // Initialize template container with our custom template templateContainer = new TemplateContainer(); templateContainer.Template = SPControlTemplateManager.GetTemplateByName(RenderingTemplateId); // Add the container […]
Recent Comments