Recent Posts
Calendar
June 2013
S M T W T F S
« May    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Posts Tagged ‘MVC’

ASP.NET MVC in Action

image

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.

Read the rest of this entry »

ASP.NET MVC – Controller to View

ka_vol1_100 A couple of weeks ago we looked at ASP.NET MVC routing in the MVC framework.  The routing controls which method in which controller gets called.

The obvious next question is, how do we get from the controller to the view?

Read the rest of this entry »

ASP.NET MVC – Routing

ring-tailed-lemur 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)

Read the rest of this entry »

MVC – Let’s Install it.

misc_vol4_048 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:

http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en

Read the rest of this entry »

ASP.NET MVC – Is The Grass Really Greener?

iStock_000001889684Medium 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?

Read the rest of this entry »

Bear