Browse by Tags

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...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
16 July 2008
ASP.NET MVC Preview 4 is out
And you can get it from codeplex . Read More...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
11 June 2008
S#arp Architecture updated
Billy has just updated this cool demo . Check it out at codeplex . Read More...
Filed under:
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...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
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...
Filed under: ,
03 June 2008
The CurrentNotification property
I’m not sure if most of you are already using IIS 7 and the latest release of the ASP.NET platform. Even though I’m still limited to IIS 6 on production sites, I’m lucky to have Vista running at home and this means that I can run some tests on the new features of the plarform. One of the new properties... Read More...
Filed under:
03 June 2008
The System.Web.Abstractions
Yesterday I’ve started looking at the new MVC platform. After looking at the MVC project, I’ve decided to take a look at the System.Web.Abstractions. In this dll you’ll find several wrappers of the objects you normally use on a Web Forms ASP.NET application. The next figure shows some of them: If you... Read More...
Filed under:
27 May 2008
ASP.NET MVC Preview 3 is out
As always, Scott Guthrie has announced it on his blog (let's see if I can keep up with all the work the ASP.NET team has been releasing and if I can finally start looking at these new platforms...) Read More...
Filed under:
20 May 2008
S#arp Architecture: first impressions
Today I've finally got some time to take a look at Billy McCafferty's S#arp Architecture . Comparing with the old NHibernate best practices project, I think it's fair to say that there are several important improvements. For instance, there's no longer a Load method that takes an instance... Read More...
Filed under: ,
More Posts Next page »