Why asp.net MVC cannot using "-" in url routing

  • Thread starter Thread starter weijie.zhang
  • Start date Start date
W

weijie.zhang

Why asp.net MVC cannot using "-" in url routing

when I using {controller}/{action}/{id} is works
but {controller}-{action}-{id} is failed

why
 
Good question --if-- and only if the text character is identified as an URI
delineator in the HTTP RFCs which establish the scope of which delineators
may be supported. Did you look it up? Are you going to look it up?


Why asp.net MVC cannot using "-" in url routing

when I using {controller}/{action}/{id} is works
but {controller}-{action}-{id} is failed

why
 
I konw it's not offical, but in struts, spring or standard servlet, "-" ","
"_" using in url filter working normally.

in mvc rc, is it only use "/" as separator.
 
Back
Top