Check, if you are within a modal dialog

By now, you probably know that the modal framework from SharePoint 2010 is a great thing 🙂 In case you need to find out if the context is within a modal dialog, you can query for the URL parameter “IsDlg”. if (Page.Request["IsDlg"] != null) { // within a modal dialog } else { // not within a modal dialog }

Empty Admin Recycle Bin items

What is it? Usually the size of the recycle bin is not relevant. But on development machines, you don’t want lots of files in there, which make your databases grow without actually used data. What do you do? Go to the recycle bin, click on “Site Collection Recycle Bin”. The two stages of the recycle bin can be managed independently. The two views on the left let you switch between the first- and second stage.

PortalSiteMapProvider.GetCachedListItemsByQuery

With MOSS 2007 or SharePoint Server 2010 you can use the PoraltSiteMapProvider of the Microsoft.SharePoint.Publishing.dll assembly to retrieve cached listitems. <span style="color:#606060" id=lnum1> 1:</span> PortalSiteMapProvider ps = PortalSiteMapProvider.WebSiteMapProvider; <span style="color:#606060" id=lnum2> 2:</span> var pNode = ps.FindSiteMapNode(web.ServerRelativeUrl) as PortalWebSiteMapNode; <span style="color:#606060" id=lnum3> 3:</span> var query = new SPQuery <span style="color:#606060" id=lnum4> 4:</span> { <span style="color:#606060" id=lnum5> 5:</span> Query = "<Where><Neq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Neq></Where>" <span style="color:#606060" id=lnum6> 6:</span> }; <span style="color:#606060" id=lnum7> 7:</span> SiteMapNodeCollection quoteItems = ps.

Reporting Services Exception

If your Report Server 2008 instance is configured as SharePoint integrated and you get an exception like this one, keep on reading. Additionally to the exception in the browser, the Eventlog revealed two more exception which are relevant to the SSRS exception. One was about the SSRS process, which quit unexpected, the other one from ASP.NET. “The SQL Server Reporting Services (MSSQLSERVER) service terminated unexpectedly. It has done this 6 time(s).

SharePoint Workspace cannot take a BCS list offline

Today I installed a BCS solution to a SharePoint 2010 farm. I wanted to take the list offline. So I clicked on the SPW button in the ribbon. As expected, SharePoint Workspace popped open, and tried to get the list. But all I got was an message, that there was an error installing the list. The eventlog, of the client I was working on, revealed that there was an error installing the solution (And we need the solution, to get the data on our clients.

Es ist vollbracht!

Ein großes Projekt ist abgeschlossen! Zusammen mit Fabian Moritz habe ich im letzten Jahr ein Buch geschrieben. Der Title lautet: Praxisbuch SharePoint-Entwicklung. Es wird Mitte Dezember diesen Jahres erscheinen (pünktlich zum Weihnachtsgeschäft :-)) und von Galileo Computing herausgegeben. Vorbestellungen werden natürlich gerne angenommen! Kurz zum Inhalt: Einführung in die Technologie SharePoint SharePoint-Entwicklungswerkzeuge (Visual Studio 2010, SharePoint Designer 2010, PowerShell und 3rd Party Tools) SharePoint-Objektmodelle (Server-Objektmodell, Client-Objektmodell und Web Services) Benutzeroberflächen (Master Pages, Ribbon, Custom Actions, Webparts, Silverlight etc.

It’s done. I’m a MCPD: SharePoint Developer 2010

Today I’ve passed the two Exams to become a Microsoft Certified Professional Developer for SharePoint 2010 🙂 Maybe I will find some time to continue on my open projects, so you can find new stuff on my blog…

Do NOT install the October 2010 CU for SharePoint Server

It seems, there is a major problem with the Server CU. Critical Information about a problem with the October 2010 CU for SharePoint Server 2010 SharePoint 2010 October Cumulative Update Issue: Details and Workaround Packages Impacted The Cumulative Update packages affected are the Server Packages for SharePoint Foundation, SharePoint Server and Project Server 2010, specifically; SharePoint Server Package 2394320 Project Server Package 2394322 The downloads for both of these packages have been removed from our servers.

SharePoint and “Sign in as a different user”

Today I stumbled across this KB article: “In SharePoint 2007 using Internet Explorer 8 and “Sign in as a different user” displays with old Session data. After 30 seconds the session object is completly refreshed and all data is correct.” Hmm. Right. I’ve noticed that. At least now I know that this is by design 🙂 Take a look at the suggested workarounds: http://support.microsoft.com/default.aspx?scid=kb;en-us;2435214&sd=rss&spid=11373 Workaround 1: customize init.js file or overload the method of LoginAsAnother() with an addition line of code: document.