Welcome to MSDN Blogs Sign in | Join | Help

Mark Arend

SHAREPOINT
TIPS & TECHNIQUES
nb… provided as-is

News

Browse by Tags

All Tags » Development   (RSS)
Debugging web parts and other SharePoint custom code
Here are some tips for debugging your SharePoint web parts and other custom code. 1. How do you debug assemblies that are in the GAC? 2. Is there an easy way of attaching the debugger to the right process? Debugging assemblies that live in the GAC When Read More...
Modifying MySite Owner Security
When someone creates a MySite, they are automatically given full control of that site.  More accurately: a MySite is a site collection; the creator becomes the first & only Site Collection Administrator; the creator is made a member of the Owners Read More...
New Design and Build Guide for MOSS 2007
This is a topic near and dear to my heart.  I've spent many hours helping customers plan and execute a wide range of customizations for MOSS 2007.  Now, the ECM Team (Enterprise Content Management) has published an exhaustive paper on these Read More...
Test With Correct Privileges
When developing web parts and other components with code, it's important to remember that operations performed by code may require certain privileges.  During development, the code runs in the security context of the developer, who is usually a server Read More...
Using Reflector to See SharePoint's "Source" Code
Do you sometimes use a "reflector" program to examine SharePoint source code? This can be necessary to: Understand out how SharePoint is doing something, to find what elements can be customized. Understand what members to override in classes Read More...
SharePoint Lists as DataTables
You may know that SPList can return a DataTable type: SPList.Items.GetDataTable(). And if you've worked with this, you may know that the DataTable you get is not databound to the list. This means you can't update the List from changes you make to the Read More...
Scripting STSADM commands
This posting contains tips 'n tricks for using STSADM commands within batch files. Note, the primary Microsoft reference for STSADM: TechNet article Stsadm command-line tool (Office SharePoint Server) . Testing results STSADM returns 0 as ERRORLEVEL in Read More...
XSL Tips
When writing XSL, it is often desirable to be able to see the raw XML that you're trying to transform. This is especially helpful when customizing XSL for web parts such as content query. The red text below show how to modify the ContentQueryMain.xsl Read More...
MOSS Search UI Architecture - Introduction
To modify SharePoint’s default search behaviors, it’s important to understand how the user interface elements for search work together to specify a query, execute a search and display the results. The following high-level overview shows how searches are Read More...
Parsing multi-value fields - MultiChoice, Lookup, User, URL. Rules for the ";#" delimiter.
For certain types of columns (aka fields), SharePoint stores several values in one field, using a delimiter to separate the different values. Column Type Items Delimiter Example Choices , configured as Display choices using Checkboxes (allow multiple Read More...
Visual Studio Extensions (VSe) Deploy Failed (for SharePoint Solution)
When using Visual Studio 2005 extensions for Windows SharePoint Services 3.0 to deploy a solution, you may see "Deploy started" then Deploy failed " in the status window and the error " 'Object reference not set to an instance of an object." in the Error Read More...
SPSchedule.FromString(recurrenceValue) - syntax/format for recurrence value
The SPSchedule class allows one to specify repeating schedules for timer jobs using derived classes such as SPMinuteSchedule, SPHourlySchedule, etc. Those are pretty easy to figure out from the SDK ( http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spschedule.aspx Read More...
CAML Query for Publishing Pages
The "Scheduling Start Date" and "Scheduling End Date" on Page content types created by the Publishing feature work great in default views of Pages libraries: SharePoint filters by these dates automatically. But when you're using code to return the items Read More...
Page view tracker