ASP.NET MVC Custom Routing Long Custom Route not Clicking in my Head
Posted
by percent20
on Stack Overflow
See other posts from Stack Overflow
or by percent20
Published on 2010-06-05T21:17:28Z
Indexed on
2010/06/05
21:22 UTC
Read the original article
Hit count: 188
asp.net-mvc-2
|routing
I have spent several hours today reading up on doing Custom Routing in ASP.NET MVC. I can understand how to do any type of custom route if it expands from or is similar/smaller than the Default Route. However, I am trying figure out how to do a route similar to:
/Language/{id}/Question/{id}/
And what I would like, too, is similar to how SO works. Something like:
/Language/{id}/Arabic/Question/{ID}/Some-Question-Title
Where "Arabic" and "Some-Question-Title" can be almost anything because what really matters is the ID's
Am I going beyond what can be done with the extended URL past the language ID?
© Stack Overflow or respective owner