Voici un URL rewriter dans le style du rewriter présent dans le MVC framework mais utilisable avec ASP.NET 2.0...
Je suis presque jalous ;), sont concepte est très interessant, certaines partie se raproche du miens (celui que j'ai créé pour ce blog) mais il est vraiment plus avancé et ne demande aucune connaissance en Regular Expression. En fait il semble assez "user-friendly".
Voici son sommaire :
Summary
The UrlMappingModule is an HttpModule that provides a URL redirection capability to an ASP.NET 2.0 WebForms project. Mapping rules are supplied by a provider object that implements IUrlMappingProvider, of which the built-in XmlUrlMappingProvider and SqlUrlMappingProvider are examples. Inspired by the simple [token] syntax allowed for by the MVC Framework's URL mapping engine, built-in UrlMappingProviders internally convert such templates to a regular expression for matching incoming URLs. Token names and values are parsed from matched incoming URLs and appended as querystring values to the redirection URL. To re-associate a WebForm's rendered <form action="..."> tag with the incoming URL rather than the redirected one, the module injects code in the Page.PreRender event, thus avoiding the need for additional components or form-by-form coding. The module is presented in the hope that MVC-style URL redirection adds value for developers working within the 2.0 WebForms Framework.