Category Archives: c#

Sitecore 404 without 302

It’s a well known issue that when Sitecore displays a 404 page, it’s done by doing a 302 redirect to the 404 page, hence the 302 status code is thrown before the 404. The behavior is partially because of the … Continue reading

Posted in c#, General .NET, Sitecore 6 | Tagged , , , , , | 4 Comments

Create components for Sitecore Page Editor

This quick tutorial will guide you trough your first Sitecore Page Editable Component. The Sitecore Page Editor is build around the concept of components. A component is a reusable piece of data that is parred with a sublayout and placed … Continue reading

Posted in c#, Sitecore 6 | Tagged , , , , | 3 Comments

Sitecore Save Dialog appears for unchanged content

Have you ever experienced that Sitecore keeps popping the “Do you want to save the changes to the item?” dialog box, even when you have made no changes to the item? And the box keeps appearing, even when you have … Continue reading

Posted in c#, Sitecore 6 | Tagged , , , , , | 4 Comments

Sitecore Users and C#

The Sitecore security framework is based on the .NET security. Managing Authentication, Authorization, User Accounts and Roles can be done using the standard System.Web.Security namespace. But Sitecore also provides its own Security framework that you can use for easy manipulation … Continue reading

Posted in c#, Sitecore 6 | Tagged , , , , , , , | 4 Comments

Sitecore Links with LinkManager and MediaManager

This article describes how Sitecore handles internal and external links, how you can resolve the correct URL to an item, and what you should know about links when building multisite and multilanguage websites. To render a corrent URL you use … Continue reading

Posted in .net, c#, Sitecore 6 | Tagged , , , , | 1 Comment

Validate CheckBoxList using a CustomValidator

In this article I explain how you can validate that at least one checkbox is checked in an asp:CheckBoxList using an asp:CustomValidator, and how to make it work server side and client side. None of the built in .net validators … Continue reading

Posted in .net, c#, General .NET | Tagged , , , , , , , , | 3 Comments

Google Maps for Sitecore

Finally the Advanced Sitecore Google Maps (WCAG Edition) for Sitecore has been upgraded to use the V3 API of Google Maps. Advanced Sitecore Google Maps is a commercial module for Sitecore that allows you to add Google Maps to your Sitecore … Continue reading

Posted in c#, General .NET, Sitecore 6 | Tagged , , , | 3 Comments

Unable to read data from the transport connection: The connection was closed

This is my second network error in 2 weeks. When trying to retrieve an image using a WebRequest I get the following error: Exception: System.IO.IOException Message: Unable to read data from the transport connection: The connection was closed. Source: System … Continue reading

Posted in c# | Tagged , , , , , , | Leave a comment

An existing connection was forcibly closed by the remote host

This error occured randomly in my project when I tried to read images from a HttpWebRequest. The exception is: Exception: System.IO.IOException Message: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Nested … Continue reading

Posted in .net, c#, General .NET | Tagged , , , , , | 2 Comments