Chris Pietschmann

husband, father, hacker, entrepreneur, futurist, innovator, autodidact

NAVIGATION - SEARCH

URL Mapping for ASP.NET 1.1

With the help of an http module, a custom config handler and a few lines of code we can add the same ASP.NET 2.0 style URL Mapping to our ASP.NET 1.1 apps. 1) First lets start by creating a new Class Library project named 'URLMapping_HTTPModule' 2) Then create three files as listed below: BaseModuleRewriter.vb Imports System.Web Public Class BaseModuleRewriter     Implements System.Web.IHttpModule     Sub Init(ByVal app As HttpApplication) Implements IHttpModu... [More]

ASP.NET 2.0: Rewriting URL Paths just got a whole lot easier

Rewriting URL paths in ASP.NET 2.0 is referred to as URL Mapping. Instead of putting some code in your Application_BeginRequest method, you can now just put a few lines in your Web.Config file and like magic you can rewrite those URL paths with ease. With URL Mapping you can turn a not so freindly URL like ~/Blog/Post/11/12/2005/145.aspx into ~/TheCoolestPost.aspx Example Web.Config File: [code:html] <?xml version="1.0" ?> <configuration xmlns="http://sch... [More]