Why All The Lambdas?
"Why All The Lambdas?" is a question that comes up with ASP.NET MVC.@Html.TextBoxFor(model => model.Rating)Instead of lambdas, why don't we just pass a property value...
View ArticleBrute Force Might Work
Problem: A content heavy web site undergoes a massive reorganization. A dozen URL rewrite rules are added to issue permanent redirects and preserve permalinks across the two versions. The question is -...
View ArticleLong May You Run
I work in an industry obsessed with novelty, so it must be the contrarian in me that likes to see software last a long, long time. OdeToCode.com started almost 10 years ago. Internally there were 2...
View ArticleMixing ASP.NET MVC Display Mode Providers and Routing Rules
You can build custom views for mobile devices in ASP.NET MVC 4 using the DisplayModeProvider features of the framework (see "Browser Specific Views" of the "ASP.NET MVC 4 Mobile Features" article for...
View ArticleWhy All The Lambdas?
"Why All The Lambdas?" is a question that comes up with ASP.NET MVC.@Html.TextBoxFor(model => model.Rating)Instead of lambdas, why don't we just pass a property value...
View ArticleBrute Force Might Work
Problem: A content heavy web site undergoes a massive reorganization. A dozen URL rewrite rules are added to issue permanent redirects and preserve permalinks across the two versions. The question is -...
View ArticleLong May You Run
I work in an industry obsessed with novelty, so it must be the contrarian in me that likes to see software last a long, long time. OdeToCode.com started almost 10 years ago. Internally there were 2...
View ArticleMixing ASP.NET MVC Display Mode Providers and Routing Rules
You can build custom views for mobile devices in ASP.NET MVC 4 using the DisplayModeProvider features of the framework (see "Browser Specific Views" of the "ASP.NET MVC 4 Mobile Features" article for...
View ArticleWhy Bootstrap?
In the .NET Rocks show on "What Developers Should Care About in 2013" I mentioned Bootstrap – an open source frontend web framework from developers at Twitter. Here are some additional thoughts on...
View ArticleMoving OdeToCode to Azure - The Database
OdeToCode.com now runs on Windows Azure.Once the decision was made to move, the first effort was investigating how to move the OdeToCode database from SQL Server 2008 to an Azure SQL Database. At this...
View ArticleCapturing HTML 5 Video To An Image
A quick example to showing how to capture a still image from a video.Assume you have the following HTML setup:<video id="video" controls="controls"><source src=".mp4"...
View ArticleUploading Captured Canvas Images
In "Capturing HTML 5 Video To An Image", Chris asked if we could upload a captured image to the server.Yes we can!We will use the same markup from the previous post, but make a simple change to the...
View ArticleWhy Use The Bootstrap Grid?
Executive Developer SummaryThe Bootstrap grid system makes page layout fast and easy.If you just want to play with layouts using the Bootstrap grid system, try my Bootstrap layout sample. The sample...
View ArticleTen Tricks for Razor Views
I've put together this list of tricks in response to some recent questions. I hope you can find something new and useful.1. Code Blocks and VariablesIn Razor you can create blocks of code nearly...
View ArticleFinding jQuery Event Handlers with Visual Event
Recently I was asked to look at a "I click and the wrong thing happens" type error. I didn't know the codebase, and I wanted to start by seeing the JavaScript for the click event handler. In a project...
View ArticleWorking with SqlBulkCopy
The SqlBulkCopy class is invaluable for moving large amounts of data into SQL Server from a .NET application. I've been working with the class recently and taking notes on a few quirks and...
View ArticleNew Pluralsight Course Covering Bootstrap
I have a new set of videos on Pluralsight covering the Twitter Bootstrap framework.Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development. In this...
View ArticleYou Want To Build Web Software with C#?
If you like choices, you've come at the right time. You might think the decision making process starts by choosing between ASP.NET Web Forms and ASP.NET MVC, but if you widen your perspective a bit...
View ArticleLearning From the Ghosts of Software Past
It was about 12 years ago when I helped to write an application that featured a class hierarchy like the following:I remember the code because I was the one to refactor the application to build the...
View ArticleThe Composition Kata
The Kata repository has new additions. The Refactoring kata I pushed out last year now has a Java version available (thanks, Tom!). Related to the previous post, I also added a Composition Kata....
View Article