As you can see in the snippet below, sorting is easy with Linq. Simply provide your OrderBy criteria and you’re done. If you want a secondary sort field, add a ThenBy expression to the chain. Want a third level sort? Just add ThenBy along with another sort expression. var projects = new List<Project> { new [...]
ASPX and ASCX files are compiled on the fly when they are requested on the web server. This means it’s possible that you aren’t catching compile errors associated with your views when you build your ASP.NET MVC project in Visual Studio. Unless you’re willing to click through your entire application, rendering each view looking for [...]
Continue reading about Uncovering Compiler Errors in ASP.NET MVC Views
Okay. This post isn’t about configuring SQL to allow remote connections, but wait, I still may be able to help you out. "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server [...]
Continue reading about Configure SQL Server to Allow Remote Connections
Noah and I continue our screencast series by sharing our approach to managing external dependencies referenced within a .NET solution. This is another introductory episode but you might find a hidden gem in the short 4-minute clip. ELMAH (Error Logging Modules and Handlers) is the external dependencies we are focusing on in the presentation. If [...]
Early in my career, when I wanted to learn a new technology, I’d sit in the bookstore aisle and I’d work my way through each of the available books on the given subject. Put in enough time in a bookstore and you can learn just about anything. I used to really enjoy my time in [...]
In this screencast, Noah and I demonstrate preferred practices around .NET solution setup, naming conventions and version control. I consider this an introductory video. If you’ve been around the block, you might want to skip this episode but if you’re a .NET/Visual Studio newbie, it may be worth a look. YouTube – Visual Studio [...]
Noah and I have started to produce a series of technical screencasts. In the spirit of Dimecasts.net, we’re limiting each episode to ten minutes as we thought the development community could benefit from short, focused episodes. We’re just getting started, but I’m really pleased with our progress and I’m very excited about what’s to come. [...]
You’re familiar with O’Reilly’s brilliant Head First Series, right? Great. Then you know how every book begins with an explanation of the Head First teaching style and you know the teaching format which Kathy Sierra and Bert Bates developed is based on research in cognitive science, neurobiology and educational psychology and it’s all about making [...]