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

Posted by Eric Bartels

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 object Why? The CmsDataFormWebpart.MakeSiteRelativeUrl (which is called somewhere when setting this property) needs the HttpContext.Current which isn’t [...]

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

Posted by Eric Bartels

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) [...]