Web

Going "dark"

January 23, 2010 · 1 min read

I'm currently in the process of moving so from the weekend of January 23rd through as fast as I can move, I'll have limited internet access.

I'll use the free time to create a proper sample project to include all the ideas stirred in the outline I made here: Upcoming ASP.NET MVC posts. I'll try to write up as much as I can from various wifi spots with the intention of getting the bulk of it out within the next week. I'm tired of this being on my To-Do list but moving does have the higher priority at the moment.

Let the withdrawal begin.

Upcoming ASP.NET MVC posts

January 20, 2010 · 1 min read

Most of this may or may not be relevant to your situation but after completing development, staging, and most of the production implementation of an ASP.NET MVC site I wanted to share some of what I learned.

The majority are one or two-off hacks from someone else's code or a down/upgrade where appropriate, creating a Frankenstein. These won't necessarily be in order I don't think.

  • Homepage - various jQuery plugins & content fetching
  • Content/ structure
  • Elmah

    • Code version: 1.1.11517.2009
    • Downgraded ELMAH_LogError stored procedure to SQL 2000
    • ELMAH_LogError pruning taken from 2 blog posts from a single source
  • Editing 1:1, 1:M or M:M in Entity Framework
  • Validation with xVal and DataAnnotations - straight up from the samples
  • Image/Link/CSS/JScriptHelpers - using tagbuilder to eliminate a lot of code in markup
  • jQuery uses

    • Delete links - tweak of ...

ASP.NET MVC and CreateArea Extension Method on Restricted Hosting

January 19, 2010 · 1 min read

I've recently switched hosting providers at the company I work for. Instead of being able to use wildcard mapping or the .mvc file extension mapping, I'm left with .aspx.

The premise of this exercise is easily explained here: http://www.asp.net/learn/mvc/tutorial-08-cs.aspx, specifically Listing #3 under the Hosted Server section.

While this is fine for a default MVC1 project, I've currently implemented Phil Haack's Areas v1 prototype with Steve Sanderson's CreateArea extension method located here http://blog.codeville.net/2008/11/05/app-areas-in-aspnet-mvc-take-2/.

To make the Global.asax change from Listing #3 in the first link (phew), you need to modify all routes to add the .aspx extension. The same goes true for .mvc.

I followed ...

Get in your Home

January 18, 2010 · 2 min read

I created this site as a personal outlet not tied to a specific entity. While I do have a blog I intend to keep at geekswithblogs.net, I wanted a little more creative freedom over the content. I was not censored in any way by the administration of geekswithblogs.net, but users had very strong opinions about what content should go on the home page or just about any content for that matter. I may be a geek but there are no rules that said I had to keep the content technical only.


As a Christian, I also wanted a place where I could freely post my opinion without feeling like I have to cater to the people that find that offensive.If I write something about Jesus Christ and that offends you then you have two options 1) Ignore that post (it seems simple when you look for tags or categories) or 2) Ignore me entirely. I do my best not to be overly preachy but I'm very quick to determine when I'm being ...