Routing for Web Forms in ASP.NET 4.0 0 comments suggest edit

A while back on a lark, I posted a prototype demonstrating how one could use Routing within Web Forms. This is something you can do today with ASP.NET 3.5 SP1, because of the work we did to separate Routing from ASP.NET MVC. I would have liked to include Web Form Routing as part of the Routing feature when we were working on SP1, but we didn’t have the time to do so in a robust manner before SP1 was locked down.

Since then, Scott Galloway, who just happens to be my office mate, has taken the reigns and is the PM in change of guiding the Web Form Routing feature to be included in ASP.NET 4.0 in a more integrated fashion.

He wrote a blog post earlier today describing some of the ways that routing will be more deeply integrated into ASP.NET such as new properties of the Page class, cool uses of Expression Builders, etc… That’s just a teaser as he promises to go a little more in depth soon.

Technorati Tags: Routing,ASP.NET

Found a typo or error? Suggest an edit! If accepted, your contribution is listed automatically here.



10 responses

  1. Avatar for q
    q January 25th, 2009

    we want mvc!
    we want mvc!!
    we want mvc!!!

  2. Avatar for Phil
    Phil January 25th, 2009

    I want my, I want my, I want my MVC....

  3. Avatar for Alper
    Alper January 25th, 2009

    Hi Phil,
    I would like to get your opinion on moving from Web forms to MVC using a step by step strategy.
    In an existing web form project
    * Disable Viewstate
    * Reduce or eliminate Postbacks
    * Reduce or eliminate web controls with html controls
    * Implement Routing
    It's kinda like preparing your existing application or a writing a new ASP.NET 2.0 application for a smooth migration to MVC eventually.
    What are some of the other factors that would make the move from Web form to MVC as smooth as possible?

  4. Avatar for mike johnson
    mike johnson January 25th, 2009

    I had always hoped for a hybrid of MVC, webforms. there are things in LOB applications that are data entry intensive that you just dont see in public facing web applications that I dont think are there yet. ie. selecting a state/province and it updates the available set of area codes in telephone number input boxes to choose most likely first.
    I know that MVC can do this but it doesnt fall in the realm of easy or productive. But ehwere mvc make sense I can see the appeal.

  5. Avatar for Mike
    Mike January 26th, 2009

    What's webforms?
    Just kidding. I can see a lot of good use for it, especially in new and existing CMS systems.

  6. Avatar for Andrei Rînea
    Andrei Rînea January 26th, 2009

    Most Violent Crime :P
    I mean Model - View - Controller :))
    When will the ASP.NET MVC be released? :(

  7. Avatar for Tyler Garlick
    Tyler Garlick January 26th, 2009

    What about abstracting out the application_start routing data into web.config parameters--I'd like to see it go declarative.
    I could totally see something like this:
    <route pattern="{controller}{action}{id}" handler="WebFormRouteHandler" />

  8. Avatar for Richard Kimber
    Richard Kimber February 1st, 2009

    Based on your original post, I implemented routing using web forms on iis6 (.net 3.5 sp1) on High Point Village.
    I'm looking forward to having an easier time of it on iis7.

  9. Avatar for Cria&#231;&#227;o de Site
    Cria&#231;&#227;o de Site August 4th, 2010

    is possible to mix 2 applications in same domain using routing ?
    like this:* points to application 2
    and:* points to other application

  10. Avatar for sakshi jain
    sakshi jain November 24th, 2011

    hi provide some additional practical knowledge.............