Below you will find pages that utilize the taxonomy term “code sample”
Posts
Make javascript code work with Minimal Download Strategy Part 1
I have a newer blog post about MDS, that provides a much simpler solution. Please check it before reading further.
This is a part 1 of the blog post about Minimal Download Strategy and javascript adjustments for user code. What I initially thought should be enough for one post, is not enough, so I see it as a part 1. I wrote this post after I had read Chris O’Brien’s post about JSLink Here I want investigate how we can get his accordion list view working with MDS.
Posts
A simple Log for ULS
Do an unsafe update in a unified manner « Sharepoint. Kunskap. Upptäckter på resan. - Sep 3, 2011
[…] Log class is my own class which I presented in my previous post. Like this:GillaBli först att gilla denna […]
Posts
A simple Log for ULS
Here is a simple log which has been inspired of Android Log. It logs to ULS which you can open with ULSViewer, SharePoint Log Viewer.
using System; using Microsoft.SharePoint.Administration; namespace Contoso.Intranet.Portal.Utilities { public class Log { private static readonly string \_CATEGORYNAME = "CONTOSO"; private static readonly SPDiagnosticsCategory \_ERROR\_CATEGORY = new SPDiagnosticsCategory(\_CATEGORYNAME, TraceSeverity.Unexpected, EventSeverity.Error); private static readonly SPDiagnosticsCategory \_WARNING\_CATEGORY = new SPDiagnosticsCategory(\_CATEGORYNAME, TraceSeverity.High, EventSeverity.Warning); private static readonly SPDiagnosticsCategory \_VERBOSE\_CATEGORY = new SPDiagnosticsCategory(\_CATEGORYNAME, TraceSeverity.