Browse by Tags
All Tags
»
MVC
(
RSS
)
ASP.NET
31 July 2008
The MVC framework – the TempData property
As we’ve seen in the last post of the series , the MVC platform introduced the notion of “request associated data” by creating the TempDataDictionary which can be accessed through the Controller’s TempData property. As we’ve discussed, the data you put in that dictionary will only “survive” a single...
Read More...
31 July 2008
The MVC framework – the Controller lifecycle
In my last post,we’ve seen how the MvcRouteHandler creates an IController instance that is responsible for processing the current request . Today I’ll keep talking about the MVC platform and we’re going to step through the tipical controller lifecycle. When you build a new controller, you end up extending...
Read More...
30 July 2008
Routes and namespaces
As I've said in one of my previous posts , you can have 2 controllers with the same name, but on different namespaces. The problem with this approach is that you'll only be able to get a route by specifying its name. So, if you don't want to use a name or if you can't (for instance, if...
Read More...
30 July 2008
ASP.NET MVC: we need a declarative control model
Yes, I’ve been asking this for some time now…in fact, this is the only thing I miss from the traditional ASP.NET Web Forms model. Those clear aspx pages, with really few <%%> crap (oopss, I mean tags) springled through out my pages – the only place I did need them was inside templates. Notice that...
Read More...
24 July 2008
Still on getting info about the current Route
In one of my previous posts , I’ve showed how you could access the Values property of the RouteData class to get info about the current controller and action. What I forgot to mention at the time was that you should use the GetRequiredString method to get the url parameter values that must be filled...
Read More...
24 July 2008
The MVC framework – the MvcHandler, the IControllerFactory and the ControllerBuilder types
As we’ve seen in the previous post , all “MVC routing requests” are handled by the MvcRouteHandler class which will simply return an instance of the MvcHandler type. The MvcHandler is an IHttpHandler which is responsible for creating other classes that end up handling the current request and processing...
Read More...
24 July 2008
Getting information about the current Route
One of the things I needed when I started playing with ASP.NET MVC is getting info about the current Route. That’s easy when you’re on the controller, but what happens when you need that info on a module? In these scenarios, the easiest way of achieving this is getting a reference to the current HttpContext...
Read More...
23 July 2008
The MVC framework – the MvcRouteHandler
As we’ve seen in the previous post , by default you’ll end up using the MvcRouteHandler class for setting up the handler that will return the HTTP response to the client. As you can see (by looking at the code), the GetHttpHandler will only return a new MvcHandler and pass it the current RequestContext...
Read More...
16 July 2008
ASP.NET MVC Preview 4 is out
And you can get it from codeplex .
Read More...
15 July 2008
Scott Gu on MVC Preview 4
Great post by Scott presenting the new things one can expect to see in the next preview of ASP.NET MVC. This means that it's time to pick up where I left and go back to the internals of the MVC platform.
Read More...
04 July 2008
The MVC framework – getting started
Today I’m going to start posting some personal rumblings about the MVC framework. In fact, I haven’t started developing real apps with it, so I’m starting this series to force me look at it since in my current job I’m no longer working with web apps. One of things you should keep in mind is that the...
Read More...
04 July 2008
The routing series
I’ve just noticed that I didn’t put up a resume of the routing series. Here’s the list of associated posts: The MVC routing assembly – part I The MVC routing assembly – part II The MVC routing assembly – part III The MVC routing assembly – part IV The MVC routing assembly – part V The MVC routing assembly...
Read More...
20 June 2008
Using routing with ASP.NET web forms apps
In the previous posts, we’ve explored the internals of the routing assembly. If you’ve downloaded the ASP.NET MVC preview 3 from codeplex , then you’ll find an interesting sample on how to reuse the routing assembly with a ASP.NET web forms app. If you’ve read the previous posts on the series, then you...
Read More...
16 June 2008
The MVC routing assembly – part VI
Today we’re going to discuss url partitioning. What’s url partioning? Well, I’m sure that you agree with me when I say that one of the greatest things about the routing assembly is that we can define parameters (or placeholders) on routes ? Here’s an example that will surelly refresh your memory: http...
Read More...
13 June 2008
The MVC routing assembly – part V
Today we’re going to talk about one of the most important components of the System.Web.Routing assembly: the UrlRouting module. If you want to use the routing framework in your web applications, then you need to register this module on your web.config file (of course, after adding a reference to the...
Read More...
11 June 2008
One more thing about the RouteTable...
In my last post on this series, we've seen how we can use the RouteTable class to register all the routes available on a web application. I'd just like to add one more thing on the locking topic. As you might recall, we've seen that internally the RouteCollection uses locks to guarantee that...
Read More...
09 June 2008
The MVC routing assembly – part IV
In the previous posts, we’ve talked about Routes . Today, we’re see how we can register the routes on a ASP.NET web application. Currently, a colecction of routes is represented through an element of type RouteCollection. If you fire up Reflector and start looking at this class, you’ll see that a RouteCollection...
Read More...
09 June 2008
The MVC routing assembly – part III
In the last post , we’ve talked about several of the properties exposed by the Route class. Unfortunately, the post grew beyond my initial expectations, which meant that the writing time was exceeded before completing the analysis of this class. Today we’ll cover its last important feature: constraints...
Read More...
06 June 2008
The MVC routing assembly – part II
In my previous post , we’ve seen that all routes must implement the contract defined by the RouteBase class. As you might expect, the framework defines one implementation of that contract through the Route class. Currently, the Route class exposes the following properties: public class Route : RouteBase...
Read More...
Home
Contact
LA.NET [EN]
Ramblings about C#, .NET and Programming
RSS for Posts
Atom
RSS for Comments
Recent Posts
The MVC framework – the TempData property
The MVC framework – the Controller lifecycle
Routes and namespaces
ASP.NET MVC: we need a declarative control model
Still on getting info about the current Route
Tags
AOP
ASP.NET
ATLAS
Books
C#
Cardspace
Gadgets
MVC
Parallel Extensions
PLINQ
PowerShell
Silverlight
Software
Tools
Trivia
WCF
WF
WPF
Archives
September 2008 (1)
August 2008 (3)
July 2008 (25)
June 2008 (26)
May 2008 (30)
April 2008 (5)
March 2008 (11)
February 2008 (9)
January 2008 (15)
December 2007 (10)
November 2007 (20)
October 2007 (19)
September 2007 (29)
August 2007 (12)
July 2007 (20)
June 2007 (33)
May 2007 (44)
April 2007 (28)
March 2007 (27)
February 2007 (21)
January 2007 (37)
December 2006 (8)
November 2006 (17)
October 2006 (14)
September 2006 (5)
August 2006 (7)
July 2006 (4)
Search
Go
Community
Home
Blogs
Media
Groups
Email Notifications
Email Notifications
Go
News