Category: MVC

MVC 3 app using jQuery UI and Entity Framework 4 (Part 2)

The re-write started with my intention to learn the new MVC 3 razor syntax – I had previously written a small MVC 2 web application after having worked on web forms for several years.

When MVC 3 came out I didn’t have much of a chance to look at it until the last 2-3 months all be it on and off. The new razor engine is really cool and makes your view pages cleaner than before and the syntax is really easy to pick up. one thing I will say though is that at first it looks like spaghetti code but if you spend a little time learning the syntax and looking at well written pages you will soon see the beauty that is in MVC 3.

Lack of controls – at first I admit when working on an MVC 2 project I was fairly frustrated at the lack of controls available when trying to create web pages, this was holding me back and simple pages were taking more time than they should have, again if your willing to put in some time you will come across projects like MVCContrib and others which have a library of controls and HTML helper to aid you with your projects.

Don’t be put off by anything mentioned above, MVC 3 has a lot of very nice features which once you get the hang of you will see the benefits of using this type of project. I am now such a fan that I would always prefer to use MVC over WebForms, the code is so much cleaner where you can use the idea of separation of concerns to make your code far more maintainable, as well as more importantly testable.

For the WebForm background crowd MVC isn’t just a fad and it really is nice to work with, if you think its more like the bad old days of asp then you havent grasped the concept and the idea behind it at all.



MVC 3 app using jQuery UI and Entity Framework 4 (intro post)

I decided to re-write an existing small application at work using MVC and Entity framework and blog about the things I learn along the way.

The current application is a vb.net 2.0 web application which we currently use to book our time on projects for our customers, it’s also probably the only vb.net application we have at work so another excuse for me to re-write.

The reason I decided to re-write this was because I wanted to first of all try to learn MVC 3 and look and the new razor engine, I also took this opportunity to use the Entity Framework for the data access which I will cover in the next part of this post.

MVC hasn’t had any real air time at my place of work even though I try to inform developers just how much I like it, it’s so hard to convince people to move from what they know and use daily, to something new and completely different and that is easy to understand, but I love to learn new technologies and look at other ways to tackle something – I guess I do suffer from always wanting to use a new technology.

The next post will cover my thoughts on what I have come across so far and how MVC and Entity Framework fit some projects but not all.



Free Telerik controls for MVC apps (including razor view engine)

The nice folks at Telerik have released:- “Telerik Extensions for ASP.NET MVC is a lightweight framework which helps you build rich user interfaces for ASP.NET MVC while enjoying great developer productivity”

I am currently using them and I highly recommend them, they even give you visual studio templates so when you start a new application you can choose from a template which reference all the necessary files and javascript required.

The textensions are available on codeplex here:- Telerik Extensions for ASP.NET MVC