Asp.net mvc routing with optional starting parameter?

You have to make sure that there will be no accidental overlap of certain routing rules. For example say you are putting the language as the first tag, make sure there will be no news-categories that have 'en' for a name. I know this is a stupid example but I think you get the picture.

Make sure you put the least accurate routing rules last.

In your case sponsor should not be treated as a constant part of URL, but as a variable part.

In addition to adding a second route before the default route, as Sergey said in his answer, you also must add a RouteConstraint to the initial route, to enforce that the {sponsor} token is the name of a valid sponsor.

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