'Programming' Category

  • Deleting a SharePoint List using Powershell

    August 24, 2011

    When I’m doing development tasks, there are times I need to quickly create and delete SharePoint content. Lists are one of those. Documenting a few different ways to delete a SharePoint 2010 list using Powershell. Two lines: One line: or

  • Event Receivers

    January 26, 2010

    Two excellent resources for ramping up on SharePoint 2007 event receivers. http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx http://www.davehunter.co.uk/Blog/Lists/Posts/Post.aspx?ID=69

  • ContentTypeID Syntax/Structure

    February 6, 2008

    There is a more efficient way to do content type IDS than we have done in the past: http://msdn2.microsoft.com/en-us/library/aa543822.aspx Say we wanted to inherit from “Page”, our content type used to look something this (I’ve split up the lines so it will display properly): 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900 188024C0FF7F45CFB85EBB43980DACF5 Meaning, inherit from “Page” (the red part), include a [...]

  • Custom Web Parts can “break” Variations process.

    October 24, 2007

    Ok, the title is vague, but there’s only so much I can put in a title, right? As per MSDN’s documentation for the Microsoft.SharePoint.WebPartPages class and Andrew’s post on v3 web parts, we should now inherit from System.Web.UI.WebControls.WebParts.WebPart when we are building custom web parts, except in the four scenarios he mentions (repeating here for my [...]

  • PortalSiteMapProvider Properties: IncludePages, DynamicChildLimit

    October 22, 2007

    The PortalSiteMapProvider class is the base provider used by the four default “CMS” SiteMapProviders: GlobalNavSiteMapProvider CombinedNavSiteMapProvider CurrentNavSiteMapProvider CurrentNavSiteMapProviderNoEncode That is, all of these SiteMapProviders use the same base code to generate a data source, but their “output” differs slightly due to the different attributes that are applied. Recently, we wanted to filter out the pages [...]

  • SPFormContext

    August 18, 2007

    Argh, Sezai beat me to this post about SPFormContext and SPControlMode by a few hours! I have to admit my sentiment is the same as his - I’m super stoked to have found this class. Oftentimes, we need some code to execute, but only in the “published” state (old MCMS terminology). We might want a component to run [...]

  • SPSite vs. SPWeb

    August 17, 2007

    We had a discussion amongst the developers in our group recently: what is an SPSite, what is an SPWeb, and what is the difference? Which once should I work with in my code? Looking at MSDN for the SPSite class, we see this description: SPSite Represents a collection of sites on a virtual server, including [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org