Problems with the ContentByQueryWebPart (CQWP) and its ItemXslLink-property

If you ever tried to set the ItemXslLink (which is a normal property of the ContentByQueryWebPart) you will see that sometimes this simply doesn’t work. You get an exception! Object reference not set to an instance of an objectObject reference not set to an instance of an object Why? The CmsDataFormWebpart.MakeSiteRelativeUrl (which is called somewhere […]

Redirecting from NewForm.aspx to DispForm.aspx after creating a new item

The requirement Recently a simple requirement came up: “Redirect the user to the view-form of an item after he creates a new item”. Sounds simple, right? … The default behavior of SharePoint is to redirect the user to the url defined by the Source-parameter. If this parameter is not given the default view (mostly AllItems.aspx) […]