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

Getting to know Entity Framework – Table Per Type (TPT) Inheritance

I’ve been using LINQ to SQL for quite sometime because until recently I’ve had little need for Entity Framework’s EDMX mappings because we’ve generally been content with one-to-one table to entity mappings that LINQ to SQL gives us. However, with the addition of a new module to our project that is close, but not quite… More Getting to know Entity Framework – Table Per Type (TPT) Inheritance

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

Gotcha – Reporting Services reports won’t page any more

A recent discovery of a “feature” in Microsoft Reporting Services reports is that when you toggle visibility for a report element, for example, a table inside a rectangle, then you’ll find that paging on that element no longer works. This is exactly what happened in a recent report where I toggled visibility of the grid… More Gotcha – Reporting Services reports won’t page any more