I’ve spent the better part of the day looking closer at ASP.NET 2.0. I’m really impressed by the amount of polish and attention to detail in the product. Here are a couple of features that represent some nice examples of “polish” - they aren’t all that hard to write yourself, but it sure was nice that somebody else wrote them for you already:
- URL mapping: there’s a new section in web.config called
which let you map old URLs to new URLs. - Image generation service: there’s a new type:
System.Web.UI.Image.ImageGeneratorthat lets you write to aGraphicsobject that it creates on the fly for you by overriding itsRenderImagemethod.
3 archived reader comments
RichB (2004-01-29)
I’d agree that he image generator handler is great, however the URL mapper is woefully inadequate. The URL mapper probably consists of a total of 20 lines of code. 10 more lines and we could have regular expression-based mapping. Let’s hope we get this in Beta1.
John Lam (2004-01-30)
The regular expression idea is interesting. It would be nice to declaratively define a transformation from one url to another: e.g. foo.com/00123.htm -> foo.com/archives/00123.aspx. Here’s hoping it shows up in B1 too!
Christian Mogensen (2004-02-02)
You should check out Apache’s
mod_rewrite— regular expressions and more for URLs.http://httpd.apache.org/docs/misc/rewriteguide.html