Flushing Sitecore Analytics data to storage

Under normal circumstances, in order for analytics data to make its way into your Sitecore Experience Profile Dashboard the user’s session needs to end. Usually you’d achieve this by “logging out” of the site or waiting for the timeout period specified by the “sessionState” element within your web.config. However, many sites don’t have a consumer log in/out functionality to manually … More Flushing Sitecore Analytics data to storage

Server-side validation with FluentValidation and AJAX

FluentValidation is an awesome library for doing model validation and its MVC component provides easy integration with jQuery.validate as well the unobtrusive counterpart. However, the client side capability of FluentValidation is presently limited to support for only a couple of validation rule types (there’s a small bullet list at the bottom of the first section). So… What are we … More Server-side validation with FluentValidation and AJAX

Using an ASP.NET UpdatePanel behind a reverse proxy

After putting my ASP.NET web forms application that utilized UpdatePanels (and therefore the ASP.NET AJAX WebForms library) behind a reverse proxy, we found that all of our AJAX enabled content was coming up with the error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is … More Using an ASP.NET UpdatePanel behind a reverse proxy

Gotcha – Implicit sitemap localization resx belong in App_GlobalResources

When providing a multi-lingual website you’re likely to want to translate your sitemap files for your menus, footer links, etc. I tend to store most of my translations using implicit localization techniques whereby you would put your resx in a relative App_LocalResources folder. However, when it comes to SiteMap localization don’t be fooled! They must all go … More Gotcha – Implicit sitemap localization resx belong in App_GlobalResources

Using validator controls with checkboxes

When attempting to set the ControlToValidate property of any of the built-in validator controls (particularly CustomValidator) you’ll find you get the following runtime error: Control ‘agreeTermsCheckBox’ referenced by the ControlToValidate property of ‘agreeTermsRequiredTrue’ cannot be validated. In my case, I want to validate a checkbox for my website’s Terms and Conditions to ensure that it’s … More Using validator controls with checkboxes

Dependency Injection into Pages and UserControls using Unity

Edit (8 Nov 2008): Turns out… Not so much the async postbacks, and more to do with a FormView not having initialized it’s controls at the point in time in the page lifecycle (on PostBack only, after Page Init). This can be tested by using a quick watch on the protected Control.ChildControlsCreated property in the … More Dependency Injection into Pages and UserControls using Unity

Using SiteMap for external links and additional attributes

In a website we are currently developing we are using the WCSF (from the Patterns and Practices group) and we wanted to inject in some links to a few external websites. The WCSF uses a custom SiteMapProvider that is part of its framework. A coworker highlighted how he solved the problem by simply overriding the … More Using SiteMap for external links and additional attributes