Updating read-only fields with the Lists web service
This is a known limitation (from a user’s perspective that is, obviously Microsoft had a good reason to design it this way) – you cannot edit fields like the Created, Modified, Created By, Modified By,...
View ArticleHow to display all versions in a SharePoint list view page – part 2
Several months ago I wrote a small posting describing how you can trick the standard list view web part to display all versions of the list items in a SharePoint list – link. One problem though with...
View ArticleSharePoint 2010 explorer (using the Client object model)
This is a small WinForm tool again using the TreeView-PropertyGrid combo very much like the popular SharePoint Manager 2010 tool (which became popular with its 2007 version), but instead using the...
View ArticleSharePoint 2010 – BinarySerializedWebPart element and XsltListViewWebPart...
The BinarySerializedWebPart is a new feature element introduced in SharePoint 2010 and … its purpose is to be used mainly internally by the SharePoint save-site-as-template functionality. The element...
View ArticleLINQ to SharePoint cross list query
In SharePoint 2010 we already have the LINQ to SharePoint support that is a great improvement over the traditional SPListItem + CAML approach for exposing and modifying SharePoint list data. The...
View ArticleProvision publishing pages in a sandbox solution
This one turned out to be an interesting finding – at first I thought that I can just copy a regular “Module” feature from a farm solution and that it will work smoothly within a sandbox solution. For...
View ArticleSite Template Configurator utility
This is the newest Windows forms tool that uses the famous TreeView-PropertyGrid combo (a long time favorite of mine). I called it the “Site template configurator” and as its name suggests it is...
View ArticleXsltListViewWebPart – several XSLT tips
The XSL customizations of the XsltListViewWebPart in SharePoint 2010 are probably not a trivial thing. If you want to do something more complex with that the best starting point for reference materials...
View ArticleXsltListViewWebPart & ContentByQueryWebPart – ParameterBindings, localization...
In SharePoint 2010 the XsltListViewWebPart and the ContentByQueryWebPart web parts play a pivotal role for the presentation of list data. It turns out that both web parts share a lot of common...
View ArticleWebProvisioned event receiver – a practical example
The WebProvisioned web event receiver is a new receiver type introduced in SharePoint 2010. It is one very useful addition to the already extensive suite of event receiver types in SharePoint, as it...
View ArticleListViewWebPart – set the toolbar with code without reflection
[update (Aug 25, 2011): this solution works only for standard SharePoint lists, whose schema definitions (in the schema.xml file) already contain view definitions which do not have the toolbar (usually...
View ArticleXsltListViewWebPart – how to hide the ribbon
A reader of my blog asked me this in a comment to one of the previous postings and I had also wondered about it myself on several occasions. The thing is that sometimes you may not want the ribbon to...
View ArticleXsltListViewWebPart – how to display columns based on permissions
The standard SharePoint security trimming in the XsltListViewWebPart works on the list item level – the items in the displayed SharePoint list may inherit the permissions from their parent list, but...
View ArticleSharePoint 2007 – associated lookup columns
No, this is not a mistake – we can also have associated lookup columns in SharePoint 2007 [update (Dec 13, 2010): check for two drawbacks in SharePoint 2007 below], though not with the extended UI...
View ArticleFeature stapling in sandbox solutions
In a recent posting of mine about the WebProvisioned event receiver in SharePoint 2010, I made a comparison between the latter and the feature stapling functionality which has been available since...
View ArticleAutomatically publishing files provisioned with Sandboxed Solutions
I couple of days ago I saw this posting on Waldek Mastykarz’s blog (a great blog by the way) and now you are reading my posting with the very same name, which treats also the very same issue, but...
View ArticleNew version of the Site Template Configurator utility
This posting is a brief announcement of the new and enhanced version of my Site Template Configurator utility, which I first introduced several months ago in another posting of mine. You can download...
View ArticlePluggable Content Query web part
Sub-classing the standard SharePoint ContentByQueryWebPart is a common approach for extending the default set of functionality that this web part offers. There are many examples for sub-classing the...
View ArticleSharePoint Search 2007 – hacking the SiteData web service – Part I
When I started preparing this posting I realized that it would be too long, so I decided to split it into two parts – the first one being more introductory and explaining some aspects of the inner...
View ArticleSharePoint Search 2007 – hacking the SiteData web service – Part II
In the first part of this posting I outlined the physical architecture of the SharePoint search engine mostly concerning the part of the Sts3 protocol handler and the role that the “SiteData” web...
View ArticleSharePoint 2010–activate features with feature properties
There are two ways to achieve this in SharePoint – specify the feature properties in the ONET.XML file of your site definition or web template (the new SharePoint 2010 feature) or put the properties...
View ArticleDeploy user controls in the SharePoint content database
Normally user controls (*.ascx files) in SharePoint are deployed with farm solutions and the preferred system (hive) folder for that is the CONTROLTEMPLATES one. User controls can be used for various...
View ArticleDynamic class system in C# 4.0
The "dynamic" type (rather pseudo-type or keyword) is a new feature in the latest version of C# - 4.0. Its purpose is to enable an easier interoperability with dynamic type languages and COM components...
View ArticleSharePoint WCM HTML clean-up
SharePoint is a great web content management system, it is fast, scalable, reliable, comes with lots of out-of-the-box components, web parts, etc. that often make the life of the content managers much...
View ArticleSharePoint 2010 - upgrading site definitions and web templates - part 1
This has been sort of a recurring issue in SharePoint since the time of MOSS 2007 (or rather SharePoint 2003). Not that you can't really upgrade an existing site definition or the new feature based web...
View Article