GravityCube - Development, design, and simplicity.

HydrogenCMS upgraded to asp.net mvc preview 3

Thursday, 5 June 2008 21:26 by jf26028

I upgraded HydrogenCMS for it's second release to asp.net mvc preview 2 tonight, and updated the HydrogenCMS.net site.  Overall, it was not a difficult exercise.  I had a hiccup or two because I had a view unfortunately named "View", and with the renaming of the RenderView method to View, it caused some problems.

Another issue was simply changing ViewData to ViewData.Model for the strongly typed pages.  Simple enough.

And, finally, there were some routing changes.  Routing, apparently, is not my strong suit, so it took a little effort to get it lined up because I am trying for the super seo friendly url of just the slug of the page, so there is a little kung fu in there, but not much.  The biggest routing issue was how Default.aspx actually gets called now, so you have to put a redirect in the codebehind, where the old version just never got called.  I don't know what the reason for that is, but a little research can fix that.

All in all, considering how much effort the .net people are putting into asp.net mvc, and how much they are listening to the community, the changes were minimal.  If you have a project in preivew 1 or 2 (I upgraded from the first preview), then I suggest upgrading.  It is mostly painless, and it will keep you from having to drop a big chunk of updates in when the library goes rtm.

Jesse Foster | jf26028

Currently rated 2.7 by 3 people

  • Currently 2.666667/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5