How to make ASP.NET Routing escape route values?

后端 未结 4 2050
别跟我提以往
别跟我提以往 2020-12-11 19:16

I have an ASP.NET MVC site where I want routes like /{controller}/{id}/{action}/{date}, where \"date\" is the mm/dd/yyyy portion of a date/time. (I\'m

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-11 20:08

    You can not use a forward slash in a route value in ASP.NET MVC. Even if it is URL-encoded it wont work.

    slash in url

    There is only a solution if you use ASP.NET 4.0

提交回复
热议问题