locked
Routing with DataTime in Edit and Details link RRS feed

  • Question

  • User1175744744 posted
    Hi, I'm using the DDFutures July edition, and I've a problem with DateTime values in the gridview, for example: http://localhost:54099/Currency_Rates/Details/EUR/11/06/2008%2000:00:00 of course it will generate a 404 error. How can I rewrite my Routes to have a Url with escaped datetime sequence, or keys as a parameter? http://localhost:54099/Currency_Rates/Details/EUR/11%2x06%2x%2008%2000:00:00 or http://localhost:54099/Currency_Rates/Details/?key1=EUR&key2=11%2x06%2x%2008%2000:00:00 thanks! ...or is there any newer version i can upgrade to?:)
    Wednesday, January 7, 2009 9:55 PM

Answers

All replies

  • User-330204900 posted

    Here's the latest stuff Application ASP.NET Dynamic Data 4.0 Preview 2 Samples there is a DD Futures but it's not changed since july but there may be stuff in there that's of interest. as to the date you may need to write your own route handler to encode the dates [:D]

    Thursday, January 8, 2009 4:31 AM
  • User-330204900 posted

    See this brilliant example of a route handler by David Ebbo in this post here Re: Manual Scaffolding and Routing with Compound PK's I'm supprised he never blogged it. [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 8, 2009 4:49 AM
  • User1175744744 posted
    thanks for your answer! I'm looking at the new version now, and i found the way to switch back to the /{action}.asp?key={value} version. Anyway on IIS6, it's just working this way, if one uses virtual url mappings, it just gives 404's. http://66.129.67.4/p/1198963/2081331.aspx was no use for me too. :)
    Thursday, January 8, 2009 9:57 AM