Author: you've been HAACKED | Posted on: 12/15/2008 12:52:37 PM | Views : 723

ASP.NET Routing is useful in many situations beyond ASP.NET MVC . For example, I often need to run a tiny bit of custom code in response to a specific request URL. Let?s look at how routing can help. First, let?s do a quick review. When you define a route, you specify an instance of IRouteHandler associated with the route which is given a chance to figure out what to do when that route matches the request. This step is typically hidden from most developers who use the various extension methods such as MapRoute . Once the route handler makes that decision, it returns an instance of IHttpHandler which ultimately processes the request. There are many situations in which I just have a tiny bit of code I want to run and I?d rather not have to create...(read more) ...

Go to the complete details ...