Author Archive

SharePoint 2010 Dynamic Compilation of .aspx and .ascx Files with .NET 3.5

September 23 2010 18 comments

What’s the problem?

One of our colleagues, Petri, had a problem with using extension methods in his Visual Web Parts user control (.ascx file). He had developed some extension methods and tried to use them in user control:

<%= DateTime.Now.SomeExtensionMethod() %>

And all he got was this error:

Compiler Error

Read more »

SharePoint Security and Permission System Overview

September 1 2010 492 comments

SharePoint Permission and Security Mechanisms

From time to time, our customers ask us about how SharePoint security and permission features work, and how should they be utilized. In this post we try to walk through the basic permission and security features of SharePoint. This post is not intended to be a complete description of every security and permission related feature in SharePoint,…

Read more »

Extending CreatePublishingPageDialog Class with a Modified File Already Exists Validation Logic

August 23 2010 21 comments

There a few nasty problem in SharePoint 2010′s default create publishing page dialog. One of the problems is that you cannot specify a file name or that SharePoint doesn’t automatically create a new filename if one with the same title already exists. Juha talked about this problem earlier, and he asked me to define my approach to create…

Read more »

How to Hide Publishing Site Actions Menu Links

July 15 2010 105 comments

One of our clients requested us to customize SharePoint in a way that we needed to hide/replace SharePoint Site Actions menu’s New Page -link. Well, at first we thought that this is easy task to do, but it wasn’t – until we figured out how to do it.

We googled a little bit, and found this thread:

Read more »

How to Display Informational Messages in a Console Action

April 28 2010 19 comments

Editing menu console actions already have a method to display errors, but there isn’t any public API for ShowMessage, and that’s unfortunate.

Fortunately, by using Reflector, I was able to find out how Microsoft uses ConsoleMessage class to display informational messages in a Console Action. I’m not sure why this class is an internal class, but…

Read more »

How to Remove Workspace Link from a Calendar

April 26 2010 11 comments

This one has been discussed in a few articles in the internet. One way to hide workspace link from calendar is to do it with JavaScript, the other way is to modify calendar schema, and of course there are several other methods to do it. All of these seemed like a hacks, so I…

Read more »
Page 1 of 3123