Geeks With Blogs
Dennis Bottjer | MVP October 2008 Entries
Manipulating SharePoint Groups With Code
SPWeb.Groups and SPWeb.SiteGroups WSS 3.0 deprecates the site group concept used in WSS 2.0. As a result manipulating groups and security objects through the object model can be less than obvious. For Example, a developer may try to add a group to a sub site (SPWeb) using this syntax SPWeb.Groups.Add(Group Name). However, in WSS 3.0 and MOSS 2007 this code will result in the following error: “You cannot add a group directly to the Groups collection. You can add a group to the SiteGroups collection.” ......

Posted On Thursday, October 9, 2008 3:05 AM

Manipulating SharePoint Lists with Code
How do I create a custom list? 1: Guid listId = webSite.Lists.Add("Sample", "Sample List", SPListTemplateType.GenericL... 2: How to determine if a list already exists within an SPWeb? 1: public static bool DoesListExist(SPWeb web, String listName) 2: { 3: foreach (SPList list in web.Lists) 4: { 5: if (true == list.Title.Equals(listName, StringComparison.OrdinalIgn... 6: return true; 7: } 8: return false; 9: } How to determine if a column (field) already exists? 1: if (!list.Fields.ContainsField... ......

Posted On Friday, October 3, 2008 5:15 AM

Bartlesville SHarePoint User Group
Shane Carter has founded the Bartlesville SharePoint User Group which is a sister group to the newly founded Bartlesville .NET User Group. The group's web site is I will present tomorrow at the SharePoint group's lunch time meeting. Details below: Date: October 3rd at 11:30 AM.We will be meeting at the Information Center (IC) building on 511 S. Keeler in room 625. Speaker: Dennis J. Bottjer will be presenting "Tips for Improving SharePoint Performance".Agenda:11:30-1... ......

Posted On Friday, October 3, 2008 4:00 AM

Copyright © DennisBottjer | Powered by: