Rendering output using Razor

When rendering output from a razor template it is important to remember the distinction between @{ ...}  and @(...) Curly braces will cause the output to execute, whilst the regular parenthesis will cause the output to render. As an example that tripped me up during rendering of a ViewComponent in the CamperFinder demo, the following... Continue Reading →

Adding SQL MIME type to IIS 7

To download a SQL file from an IIS hosted website the website needs to know how to handle the file. In general terms a SQL file is plain text, so the respective MIME type would be text/plain This can be added to IIS manually using the MIME types editor. Or for a more reliable approach... Continue Reading →

The Art Of Unit Testing, TDD

My quote-of-the-day, regarding Test Driven Development: I am convinced that it [TDD] can work to your benefit, but it’s not without a price (time to learn, time to implement, and more). It’s definitely worth the admission price, though. Taken from the excellent The Art of Unit Testing: with Examples in .NET by Roy Osherove.

Microsoft Mocking

As a .NET developer I don’t like using third party controls when there is tooling available from MS that will do the job I need. For example I prefer using the “baked in” MSTest suit as opposed to NUnit or MBUnit. The same is true for a mocking framework. I have tried with varying levels... Continue Reading →

Paperless Home

Many, many years ago I had a flatbed scanner and that scanner had a gnatty ‘scan-to-email’ function that would email any scans as a PDF attachment. Many years later (but still many years ago) I signed up for the Google Documents online service and registered for their Email to Documents service. This was a hashed... Continue Reading →

Silverlight Tab Stops – IsTabStop

Just found a tricky little quirk with TabStop that caused a fair bit of confusion. It turns out that the default implementation of ContentControl overrides Control, so implements the IsTabStop property, and defaults that value to true. ContentControl is implemented by the delightful BusyIndicator, so if you have used a BusyIndicator within the scope of... Continue Reading →

A WordPress.com Website.

Up ↑