Versioning Issues With Optional Arguments

One nice new feature introduced in C# 4 is support for named and optional arguments. While these two features are often discussed together, they really are orthogonal concepts.

Read More

Creating Copies of Attributes

code suggest edit

UPDATE: A reader named Matthias pointed out there is a flaw in my code. Thanks Matthias! I’ve corrected it in my GitHub Repository. The code would break if your attribute had an array property or constructor argument.

Read More

Dynamic Methods in View Data

In ASP.NET MVC 3 Preview 1, we introduced some syntactic sugar for creating and accessing view data using new dynamic properties.

Read More

ASP.NET MVC 3 Preview 1 Released

UPDATE: This post is a out of date. We recently released the Release Candidate for ASP.NET MVC 3.

Read More

Uploading a File (Or Files) With ASP.NET MVC

aspnetmvc suggest edit

I wanted to confirm something about how to upload a file or set of files with ASP.NET MVC and the first search result for the phrase “uploading a file with asp.net mvc” is Scott Hanselman’s blog post on the topic.

Read More

Razor View Syntax

UPDATE: Check out my Razor View Syntax Quick Reference for a nice quick reference to Razor.

Read More

Back from Alaska With A New Release of Subtext

My son and I returned from a week long vacation to visit my parents in Anchorage Alaska last night. Apparently, having the boys out of the house was quite the vacation for my wife as well. :)

Read More

Null Or Empty Coalescing

code suggest edit

In my last blog post, I wrote about the proper way to check for empty enumerations and proposed an IsNullOrEmpty method for collections which sparked a lot of discussion.

Read More

Checking For Empty Enumerations

code suggest edit

While spelunking in some code recently I saw a method that looked something like this:

Read More

Subtext 2.5 Skin Improvements

subtext suggest edit

Deploying a Subtext skin used to be one of the biggest annoyances with Subtext prior to version 2.5. The main problem was that you couldn’t simply copy a skin folder into the Skins directory and just have it work because the configuration for a given skin is centrally located in the Skins.config file.

Read More

Subtext 2.5 Released!

subtext suggest edit

Wow, has it already been over a year since the last major version of Subtext? Apparently so.

Read More

Is Arrogance a Factor in Success?

I saw a recent Twitter thread discussing the arrogance of Steve Jobs. One person (ok, it was my buddy Rob) postulated that it was this very arrogance that led Apple to their successes.

Read More

ASP.NET MVC and Me in PragPub Magazine

aspnetmvc oss suggest edit

The June issue (also in pdf) of the online PragPub magazine, published by the Pragmatic Bookshelf has two articles on ASP.NET MVC.

Read More

Deals Well With Ambiguity

code suggest edit

A while ago I was talking with my manager at the time about traits that we value in a Program Manager. He related an anecdote about an interview he gave where it became clear that the candidate did not deal well with ambiguity.

Read More

Finding Serenity at Lake Serene

personal suggest edit

The last time I wrote about one of my hiking adventures, it started off great, but really didn’t end well. But I survived, so on that scale, yes it did end well! It’s a matter of perspective.

Read More

Copying Files Over Remote Desktop

tips tech suggest edit

Here’s a handy tip I just recently learned from the new intern on our team (see, you can learn something from anyone on any given day). I’ve long known you could access your local drives from a remote machine.

Read More

Three Hidden Extensibility Gems in ASP.NET 4

aspnet code suggest edit

ASP.NET 4 introduces a few new extensibility APIs that live the hermit lifestyle away from the public eye. They’re not exactly hidden - they are well documented on MSDN - but they aren’t well publicized. It’s about time we shine a spotlight on them.

Read More

Globalizing ASP.NET MVC Client Validation

One of my favorite features of ASP.NET MVC 2 is the support for client validation. I’ve covered a bit about validation in the following two posts:

Read More

ASP.NET MVC Tabular Display Template

The ASP.NET MVC2 templates feature is a pretty nice way to quickly scaffold objects at runtime. Be sure to read Brad Wilson’s fantastic series on this topic starting at ASP.NET MVC 2 Templates, Part 1: Introduction.

Read More

Tip: Replacing Html.Encode Calls With New Html Encoding Syntax

Like the well disciplined secure developer that you are, when you built your ASP.NET MVC 1.0 application, you remembered to call Html.Encode every time you output a value that came from user input. Didn’t you?

Read More