Deeper URL Routes

Last post 03-12-2008 6:29 PM by ChrisKinsman. 1 replies.

Sort Posts:

  • Deeper URL Routes

    03-12-2008, 6:14 PM

    How can I form deeper url routes?

     I want to have something like:

     {controller}/{action}/{id}

     and if a URL like

     /Home/View/2008/Spring/Easter/Morning

    I would like id = "2008/Spring/Easter/Morning" to be put into the ID.  Currently I get a resource not found.  I can't figure out how to express this in the route mapping.  It could be N levels deep.

     Any thoughts?

    Chris
  • Re: Deeper URL Routes

    03-12-2008, 6:29 PM

    Figured it out myself.

     Can do:

     {controller}/{action}/{*id}

     

    Chris
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter