Header background image for AlwaysMoveForward.com

Blog entries for February 2009

Software

My MVC Experiment Part 2

What has gone before - I had some problems installing my blog software so decided to write my own.  Now what do I do?Well my original idea was to implement this using ASP.Net Web Forms, couple that with a little Ajax action, some LINQ, man this will be so sweet I thought.I started playing around with it, and in my travels of reading up on LINQ I came across some MVC stuff.  Hmm interesting, what is the new ASP.Net thing they're talking about.  Looks interesting.  I kind of like the way the files
By Arthur Correa • 0 Comments
Continue Reading
Software

My MVC Experiment Part 3

What has gone before-I had problems installing blog software with my host, so I decided to write my own.  I sort of force myself to do ASP.Net MVC instead of ASP.Net Web Forms, and was pleasantly surprised at how much I liked it. Ok, so I'm writing my own blog software using MVC.  Sounds good, first lets get a schema going..Ok, blog entry table, a table for tags, a table or comments, throw in a users table, what else?  How about a role table for user roles.  Hmm I guess that'
By Arthur Correa • 0 Comments
Continue Reading
Software

My MVC Experiment Part 4

What has gone before-I had problems installing blog software with my host, so I decided to write my own.  I sort of force myself to do ASP.Net MVC instead of ASP.Net Web Forms, and was pleasantly surprised at how much I liked it.  Then I went to create my schema and decided to make my life more difficult for myself by having a multi-blog site. So how to architect my system on top of the LINQ generated layer.  Hmm well I'm using MVC.  I could just throw my business logic in th
By Arthur Correa • 0 Comments
Continue Reading
Software

Some minor problems upgrading to MVC RC

Yesterday I ran into a couple of problems when I went to upgrade to the release candidate for MVC.  The first had to do with a custom autorization filter I had created for this site.  The second problem had to do with request validation suddenly being enabled. The AuthorizationFilterSome quick background for those not familiar with this method.  I wanted to do my own flavor of request authentication.  So I created a class that derived from FilterAttribute, and from IAuthorizationFilter.Deriving
By Arthur Correa • 0 Comments
Continue Reading
Software

My MVC Experiment Part 5

myself to do ASP.Net MVC, and was pleasantly surprised at how much I liked it.  I decided to do it as a multi-blog site just to make life interesting, and then used LINQ and realized that it made life pretty easy. Ok, so I need some place to put my core business logic and my data access code.  Well I'm using MVC so I could just put my business logic in the Controller, but in my last post I explained why I didn't like that.  So I want to put my business logic in a Manager class.&nb
By Arthur Correa • 0 Comments
Continue Reading
Software

My MVC Experiment Part 6

What has gone before-I had problems installing blog software with my host, so I decided to write my own.  I sort of force myself to do ASP.Net MVC, and was pleasantly surprised at how much I liked it.  I decided to do it as a multi-blog site just to make life interesting, and then used LINQ and realized that it made life pretty easy. So now that I've described to you the underpinnings of my site.  Here is where I get into the MVC stuff.  There were a few areas that I'll dive
By Arthur Correa • 0 Comments
Continue Reading
Software

My MVC Experiment Part 7 - Fun with ViewData

Okay so I'm actually going into my MVC details now.When I first started using ASP.Net MVC I dumped everything into the ViewData dictionary using ViewData[""].  I had noticed the ModelContainer class that is created for you when you first create an MVC project, but honestly why bother?  You can just dump whatever you want into the ViewData at will so why create a bunch of properties on a class?Uhm ok, but lets take the opposite approach.  Why NOT create a bunch of properties on the class.  My opi
By Arthur Correa • 0 Comments
Continue Reading
Software

My MVC Experiment Part 8 - Route Mapping

So I've finally gotten to start working on actually MVC portions of the Blog code.  Lets see how does this stuff work?  Hmm ASP.Net looks at the url coming in and determines the controller and action from the url pretty straightforward. So just as an example here I am at http://www.alwaysmoveforward.com/software/Blog/Post/2009/2/19/My_MVC_Experiment_Part_8_-_Route_Mapping.  How does MVC use this url? Well it starts off by ignoring the first part of the url that contains the site.&
By Arthur Correa • 0 Comments
Continue Reading
  • 1