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

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
 
H

Hillbilly

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
 
W

weijie.zhang

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top