Why doesn't a URL with two hyphens ( in one segment ) match a Route in my Route Table?

Server doesn't know which hyphen in your URL is delimiting cid from category That's why it can't work. You could solve this by using something else than dashes in your category value Or write a custom Route class that will be more flexible with definitions This answer on Stackoverflow may help you, because it can easily be used in your case.

I have a constraint on {cid} which only allows numbers. It's prefaced by c. I would have assumed it would have used a regular expression like "articles/c0-9{1,6}-.

*/" behind the scenes but I'm don't know enough about how the Routing engine matches routes to know exactly. It would appear to only respect the forward slash as a concrete delimiter. – Atømix Apr 20 '10 at 20:38 Just checked out that answer.RegexRoute... interesting.

– Atømix Apr 20 '10 at 20:42 1 @Atomiton: Constraints are checked after route has already determined that a particular request should be handled by this route (by it's URL definition). Steps: Route tries to parse incoming request against its URL definition. If parsing succeeds, URL variables (as defined in route URL definition) are checked against constraints.In your particular case, parsing fails.

Constraint checking does not execute at all. – Robert Koritnik Apr 21 '10 at 7:38 Excellent comment! I had assumed it worked like a Regex, but your explanation makes more sense, now.

I'm also thinking it parses from RTL. Have you got a source for more information about how it works? I saw your post here: stackoverflow.

Com/questions/2378222#answer-2381181 on the other question. Also very helpful. Thanks!

– Atømix Apr 21 '10 at 13:26.

Server doesn't know which hyphen in your URL is delimiting cid from category. That's why it can't work. You could solve this by using something else than dashes in your category value.

Or write a custom Route class that will be more flexible with definitions. This answer on Stackoverflow may help you, because it can easily be used in your case...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions