Live Demos

Friday, April 15, 2011

ASP.NET MVC 3 Sample Project Launched




Okay, after popular demand of I think 0 people, I’ve published my old demo MVC 1 project as an MVC 3 project. If you haven’t read any of the posts on the last demo project, check out this post. This project completely separates UI & C# code, so you only have 2 projects (Core & UI…not counting the Unit Tests project).

Basically, all I did was create a new MVC 3 project using Razor with Microsoft’s default template and deleted everything except the following:

  • Views folder
  • Root Default.aspx
  • global.asax (I did delete the global.asax.cs)
  • both web.configs

I referenced my Core, setup my views that match my Core project, and inherited from my global.cs in the global.asax. That was it!

You can download it via zip here: http://code.google.com/p/derans/downloads/list (the file is called DemoPhotographySite_v3.zip)

I feel like this project will act as a great stepping stone to understanding the Code Camp server, which is much more complex.

The sample project was built with the following tools:

If you downloaded the old one, you’ll notice that I removed the following 3rd parties:

The primary reason I removed these three parties is because MVC 3 and Razor are good enough so you don’t need the 3rd party tools.

The best practices I mentioned above come straight from experience and the following people/resources:

You can see the exact same Core code in use at sweetandhappy.com. If you see any improvements that can be made or you’d just like to comment, please do so!

Also, please note that I basically am even re-posting the exact same blog post I did over a year ago with my original MVC demo project. I hope you don’t mind, but it’s late and I have to work tomorrow :)

Thanks for reading!

Shout it

3 comments:

  1. You can certаinly see уour еxpertise within the work
    you write. Τhe arena hoρes fοг mοrе pasѕionаte writers such as you whο arеn't afraid to say how they believe. All the time follow your heart.
    Feel free to visit my web site associate degree

    ReplyDelete
  2. Hey there! Do you usе Twitteг?

    Ӏ'd like to follow you if that would be okay. I'm undoubtedly enjοying уοur blog and lοok foгwаrԁ to neω updates.
    My page: management colleges in delhi

    ReplyDelete
  3. Attгаctive sectiоn of cοntеnt.
    I juѕt stumbled uρon your blog and in accеssіon
    caρital to аѕsert thаt I get in faсt еnjοуеԁ ассount yοur blоg posts.
    Anуωаy I'll be subscribing to your augment and even I achievement you access consistently quickly.
    my web page :: lip Plumper review

    ReplyDelete