Author: Karl
-
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…
-
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…
-
XML Comments for Entity Framework
Technorati Tags: EF,Sandcastle,SHFB,VS 2010 HEADLINE: If I use the Entity Framework (Self Tracking Entities or EntityObjects) templates, how can I add XML Comments so that I can use Sandcastle and Sandcastle Help File Builder to generate the documentation for my libraries? Is there a way to modify the T4 templates so that I can access…
-
Using AspNetSqlProvider on Your Database
Technorati Tags: ASP.NET Headline: Run “aspnet_regsql.exe”. User Story: As a web developer I want to use the AspNetSqlProviders for my website using an SQL Server database so that I can more easily host the site. Take 1: I was excited about the new ASP.NET MVC 2 being in the beta for 2010. So I created…
-
I wish I could write software this cool…
Technorati Tags: WinDirStat,SmartSync Pro,WHS,Win 7 What cool software am I talking about? WinDirStat and SmartSync Pro. I went from 600 GB down to less than 60 GB! Recently my Windows Home Server had issues and I had to recover from a failed hard drive. In addition to lots of recovery efforts, I was sent back…