Archive for the ‘MVC’ tag
The importance of the order of routes in ASP.NET MVC
Last week I had the pleasure of listening to a presentation from Scott Guthrie here in Stockholm, http://weblogs.asp.net/scottgu/archive/2009/12/06/my-presentations-in-europe-december-2009.aspx. One of the most interesting parts of the all day event was his talk about ASP.NET MVC 2. Yesterday I had some time off and started to try things out using Visual Studio 2010 Beta 2 and the ASP.NET MVC 2 template. It was running smoothly for a while until I bumped into a problem I recognized from earlier. I didn’t remember the solution right away, but soon I figured it out what was the key point in making the routes, registered in Global.asax, work properly.
The order when adding the routes using the MapRoute method on a RouteCollection object is important to avoid getting a 404 page when browsing to pages that are supposed to work. I will present the problem and the solution for it below.
Hobby projects and books
I haven’t had time for any article writing lately, because of the simple fact that I have prioritized my hobby projects.
I have finally started using the ASP.NET MVC Framework, together with jQuery and a RESTful web service, using the WCF REST Starter kit. These frameworks and libraries are some really great stuff! Have a look at my project blog on http://develop.freddes.se/blog.
My good friend Gabriel Svennerberg, writing about useability on http://www.svennerberg.com, told me about a new book coming out soon, about the ASP.NET MVC Framework. There is a sample chapter available for downloading on http://www.asp.net/mvc. I haven’t read it yet, but will do so as soon as possible. Right now I’m reading another book, RESTful Web Services by by Leonard Richardson (Author), Sam Ruby (Author), David Heinemeier Hansson (Foreword), which is a great book so far.
Setup an ASP.NET Web Service Solution (MVC Web Service part 2)
In this article the actual MVC like design will start to show up. The previous article, , didn’t really have anthing to do with MVC, so let’s begin!
Almost all design patterns will make re-use of code easier, but to accomplish this it is important to setup the Visual Studio Solution in such a way to support this. In the setup I will show here I will make way for re-use and the implementation of the MVC design.
ASP.NET MVC Preview 5 Release
On the ASP.NET CodePlex web site I found that ASP.NET MVC Framework was released, preview 5, the other day.
As I have written in earlier posts about the MVC Framework I will try it out by using it in one of my hobby projects. So far I haven’t got the time to start this project but soon, really soon…