ASP.NET MVC File Upload

This very short blog post will show you how to add support for uploading files to an ASP.NET MVC application. Add a controller action Add a controller action that accepts a parameter of type HttpPostedFileBase. In the example below, I save the file to my App_Data folder. I would highly recommend that...

Continue reading...

Posted by john on Sunday, April 26 2009 2 Comments

StructureMap/Ninject + log4net

One fine day, my task was to refactor my classes so they did not have a dependency on log4net. The first thing I did was to create an ILogger interface in my core library, and an Log4NetLogger class in my infrastructure library. Followed by adding a line to my IoC container bootstrapper class. Finally...

Continue reading...

Posted by john on Tuesday, April 07 2009 1 Comment

ALT.NET Programming Contest

Last weekend, I went to the ALT.NET Seattle Open Spaces event. It was an awesome experience to talk with all my blogging heroes. On Saturday night, they held a programming contest. I won! http://codebetter.com/blogs/aaron.jensen/archive/2009/03/05/the-alt-net-programming-contest.aspx...

Continue reading...

Posted by john on Friday, March 06 2009 No Comments

Is this a good way to wire up NHibernate using StructureMap?

I am blogging this code snippet in order to ask some people at altnetseattle if this is a good implementation or not. I want to know whether or not this is considered a good way of wiring up NHibernate using StructureMap . I am making use of the registry DSL feature, this code would get called somewhere...

Continue reading...

Posted by john on Friday, February 27 2009 1 Comment

02/24/09 Tank Photos

...

Continue reading...

Posted by john on Tuesday, February 24 2009 No Comments

How NHibernate saved my day

I am working on an ecommerce site as a personal learning project. Rob Conery’s MVC Storefront series of blog posts was my inspiration. However, I am following a different path. I am using NHibernate instead of Linq-To-Sql. I determined that the hosting budget for this little project would be exceeded...

Continue reading...

Posted by john on Thursday, January 08 2009 No Comments

Using the Code Behind in MVC causes blindness

LOL for the funny post title. Derik wrote a great post with a great list of tips to live by: Keep your Code Behind empty Keep your Views simple Keep your Controllers light Keep your Model fat (domain model that is)...

Continue reading...

Posted by john on Friday, December 12 2008 No Comments

How to get WebORB and ASP.NET MVC to work together.

As mentioned before, I have been writing some RIA applications using Flex. I've also been playing with ASP.NET MVC. I have one project where I am considering combining the two. I have been using WebORB from MidnightCoders as my communication layer between .NET and Flex. I've been really happy with it...

Continue reading...

Posted by john on Tuesday, December 09 2008 No Comments

LOL Cat I could not resist

I would normally never post an lol cat to my blog. However, this one struck my funny bone so bad that I almost spilt my morning coffee all over my desk. more animals...

Continue reading...

Posted by john on Friday, December 05 2008 No Comments

Oracle ODP.NET & nHibernate

I am writing an application at work using nHibernate against an Oracle database. I was having trouble getting something to function properly, and wanted to test Oracle's ODP.NET driver instead of Microsoft's driver. I am linking to this article so I can refer to it later....

Continue reading...

Posted by john on Monday, December 01 2008 No Comments