• February 2010
    M T W T F S S
  • Latest Posts

  • Latest Comments

  • Archives

Archive for February, 2010

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 […]

2002 Indian – What a ride

Technorati Tags: Motorcycle Last night was very interesting. Each year The Briarwood School has a fund raising event which includes silent as well as live auctions. Last night one of the auction items was a 2002 Indian. While I don’t have the actual picture, this image was the closest I could find: The color looks […]

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 <{f073afa9b3cad59b43edffc8236236232bb532d50165f68f2787a3c583ed137f}= typeof(KarlZMvc.MvcApplication).Assembly.GetName().Version.ToString() {f073afa9b3cad59b43edffc8236236232bb532d50165f68f2787a3c583ed137f}> I tried all sorts of combinations with the GetExecutingAssembly, or calling, etc. […]

Gentleman’s Smart Key Passive Entry

Technorati Tags: Values,Prius Headline: I enjoy the “Gentleman’s Keyless Entry” that I have with my 2010 Toyota Prius. What do I mean by Gentleman’s Keyless Entry? First I need to review some history. Before Remote Locks There was a day that cars did not have remotes to lock and unlock them. So a driver had […]

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 […]