SharePoint of the Day #48

Never dispose objects received through SPContext.Current. Doing so will dispose objects used by other code and may cause your application or page to crash.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 5, 2009

Tags:

SharePoint of the Day #47

If you need to retrieve the number of items in a list, use SPList.Items.Count. If you need to retrieve the number of items AND folders in a list, use SPList.ItemCount.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 4, 2009

Tags:

SharePoint of the Day #46

If you add new files to a solution, remember that a solution upgrade does not deploy new files, only update existing files. You need to uninstall and reinstall the solution to add new files.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on June 3, 2009

Tags:

SharePoint of the Day #44

Always use brackets around the GUID ID attribute when creating of referencing site columns.
<Field Type=”Text”
DisplayName=”Test Column”
ID=”{5B36020C-438A-4ca3-9526-49523CE10C43}”
Name=”TestColumn”
/>
In all other cases where GUIDs are involved, the brackets can be [...]

Posted under Developer

This post was written by spotd on June 1, 2009

Tags:

My First Book Review

I just got a taste of Bjørn Furuknap’s Building the SharePoint User Experience, and I can safely say I like this book!
Delicious Digg This Post

Posted under Developer

This post was written by spotd on May 29, 2009

SharePoint of the Day #43

Always remember to include the NamespaceURI of XmlDocument elements in content types. Otherwise SharePoint will not know which XmlDocument to use.
You can learn more about content types in USP Journal Volume 1, Issue 2
Delicious Digg This Post

Posted under Developer

This post was written by spotd on May 29, 2009

Tags:

SharePoint of the Day #42

WSP and STP files are just .cab files in disguise. Rename them to .cab and you can open them with a zip tool and extract the contents. You can then make edits and repackage to modify a template file.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on May 28, 2009

Tags:

SharePoint of the Day #40

You can add custom columns to the Site Settings page by adding a CustomActionGroup. Very useful when combined with CustomAction elements since you can create your own management shortcuts.
Try adding a feature with an element manifest that contains this:
<CustomActionGroup Id=”MyCustomColumn”
[...]

Posted under Developer

This post was written by spotd on May 26, 2009

Tags:

SharePoint of the Day #38

Microsoft’s SharePoint Dispose Checker Tool really helps you find potential problems with disposing SharePoint objects in your code.
You can download the SharePoint Dispose Checker Tool from MSDN code library.
Delicious Digg This Post

Posted under Developer

This post was written by spotd on May 22, 2009

Tags:

SharePoint of the Day #36

You can create a taskbar shortcut to the 12-hive for quick access to logs and other SharePoint files. To do so, right-click on an empty section of your taskbar and select Toolbars->New Toolbar. Browse to the 12-hive, usually at c:\Program Files\Common Files\Microsoft Shared\web server extensions\12, and click OK.
Delicious Digg This Post

Posted under Administrator, Developer

This post was written by spotd on May 20, 2009

Tags: