• Post Calendar

    May 2012
    S M T W T F S
    « Apr    
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  

Posts Tagged ‘MVC’


MVC Overview

Technorati Tags: MVC What’s different about Microsoft’s ASP.NET MVC (Model-View-Controller)? There are some very good books about MVC (such as Steven Sanderson’s book), but here are the features I enjoy the most: Routing – The routing model in MVC makes you really think about what you want your URLs to look like. In EVERY instance [...]

MVC – Upcoming Series

Technorati Tags: MVC,VS 2010 I’ve been playing with Microsoft’s ASP.NET MVC (Model-View-Controller) application on and off for about a year now. It’s been moving at such a fast pace that it seemed I was always starting over with another install – CTPs, V1 Visual Studio 2008, previews for Visual Studio 2010… And now I’m currently [...]

Testing HtmlHelper in MVC 2 RC 2

Technorati Tags: MVC,TDD,Mock,Moq I strive to use TDD (Test Driven Development) so not having unit tests drives me crazy. I was so pleased to run across this post http://ox.no/posts/mocking-htmlhelper-in-aspnet-mvc-rc1-using-moq making it easy for me to unit test the Html Helper. But then I downloaded the MVC 2 RC 2 and all my unit tests for [...]

Error Check for MaxLength in Entity Framework

Technorati Tags: EF,MVC,VS 2010 HEADLINE: edmProperty.TypeUsage.Facets[“MaxLength”].Value comes in handy. I don’t make a habit of making a post when someone else has done some work… I might point it out, and in that spirit here is the post that finally sent me in the right direction: http://soci.hu/blog/. However, the post is not in English (fortunately, [...]

Showing the Version for an MVC App

Technorati Tags: MVC,ASP.NET,VS 2010 The primary MVC (Model-View-Controller) application that I’m working on is called KarlZMvc resulting in a dll called KarlZMvc.dll. To get the version output on my Site.Master page I need to include the following line: Code Snippet <%= typeof(KarlZMvc.MvcApplication).Assembly.GetName().Version.ToString() %> I tried all sorts of combinations with the GetExecutingAssembly, or calling, etc. [...]

Globalization in web.config

Technorati Tags: MVC,Globalization,ASP.NET Headline: Putting the following code in the web config (at least for an ASP.NET MVC app) will cause your pages to honor the user’s browser settings. Code Snippet   <!–If culture and uiCulture are set to auto, ASP.NET can set the UI culture and culture for a Web page automatically, based on the [...]

Forget the Colon as a Separator

Technorati Tags: MVC,ASP.NET Headline: Only use a colon as a separator when there is no other visible means of separation. Stated differently, “Stop using a colon between a label and a text box!” Back in DOS (Disc Operating System) when there was no graphical user interface we needed a way to let the user know [...]

Saturday Night Wrestling with MVC

Ok… It wasn’t really that bad, but it did take some effort. Here was my objective: Now that MVC (ASP.NET Model-View-Controller) 1.1 has been released (not sure how I missed that) to work with Visual Studio 2010 and .NET 4.0 migrate my evolving website to use the .NET 4.0 beta. I was able to get [...]

Leveraging MVC ModelError Using Exceptions

Headline: A very simple change to the DefaultModelBinder will allow you to use default validation capabilities in Microsoft’s MVC (Model-View-Controller) Framework far more effectively. The Problem – Please show my model exceptions to the user! As Steven Sanderson stated in his book, you want to have the validation for your model in an MVC application [...]

Review of Pro ASP.NET MVC Framework

A Review of Pro ASP.NET MVC Framework by Steven Sanderson, ISBN 10: 1-4302-1007-9 Update I started taking notes as I went along, but I’ve not stopped. I really recommend taking this book and working through the exercises. I’m confident you’ll be a better developer even if you’re are not particularly interested in MVC. (Of course, [...]