Archive for the ‘ASP.NET MVC’ Category

Friday Books – Professional ASP.NET MVC 1.0

Professional_ASP_NET_MVC 1_0This book begins with you working along as Scott Guthrie builds a complete ASP.NET MVC reference application. He begins NerdDinner by using the File->New Project menu command within Visual Studio to create a new ASP.NET MVC Application. You’ll then incrementally add functionality and features. Along the way you’ll cover how to create a database, build a model layer with business rule validations, implement listing/details data browsing, provide CRUD (Create, Update, Delete) data form entry support, implement efficient data paging, reuse UI using master pages and partials, secure the application using authentication and authorization, use AJAX to deliver dynamic updates and interactive map support, and implement automated unit testing.

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 »

ASP.NET MVC – Model != BLL or DAL

Last week I introduced the ASP.NET MVC framework by talking a bit about what the model, view and controller are.

In the comments, John Meyer said,

I respectfully disagree with your claim that the model is you BLL. MVC is a UI layer pattern, and as such all models, views, and controllers are strictly in the UI level.

While historically, MVC has been described in the way I stated–while the ASP.NET MVC guys have also portrayed the Model as BLL or below–I have to agree with John.  Here’s why:

Read the rest of this entry »

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor