Posts Tagged ‘MVC’
The Model-View-Controller pattern—universally known as MVC—provides a stable, testable approach to web application development by separating the major functions—or concerns—of an application into independently defined roles.
ASP.NET MVC in Action is a comprehensive guide to MVC-based development using this powerful framework. It offers a clearly-written introduction both to the ASP.NET MVC Framework and to the MVC approach. The focus is on creating real, maintainable web applications—so don’t expect toy examples and short snippets. The authors lead you from first-use through real-life scenarios.
One of the core features of ASP.NET MVC that makes everything “just work” is the concept of routing. By specifying ahead of time what a route looks like, we can create links that look like regular URLs with no parameters that behave like parameterized URLs on the server.
The magic for this all happens in Global.asax.cs (or .vb if you are using Visual Basic)
Unless you only read my blog, you probably already know that MVC 1.0 released yesterday. So it’s time to install it into visual studio.
Now, you are supposed to be able to install it using the Microsoft Web Platform Installer, but when I try that, the only option I have is to install RC2, which isn’t what we want, so let’s head on over to the Microsoft download location and install it from there:
There are three ways now to write a web site in ASP.NET:
- Use Classic ASP model with everything in the ASPX file and only use HTML controls without the runat=”server” attribute
- Use the Web Forms model
- Use the new ASP.NET MVC model
Each have their own benefits that need to be weighed carefully prior to moving forward with a design. So what does MVC give us that we didn’t already have in either classic ASP or Web Forms?