In my Controller, I have two actions (of importance here):
TroupeController.Display(int id)
TroupeController.Display(string name)

and I have (for now) just one routing rule:

PatternRoute pt = new PatternRoute("troupebyname", "/Troupe/
<name>.rails")
   
.DefaultForController().Is<TroupeController>().DefaultForAction().Is("Display")
   .Restrict("name").ValidRegex("[a-zA-Z1-9]+");
RoutingModuleEx.Engine.Add(pt);

Now, if I were to try to use this routing:
http://localhost:20322/Troupe/papermill.rails

One would think (or at least, hope) that this would be routed to the
second Display action.  It is however, being routed to the first
(where, naturally, it fails).

What am I doing wrong, and how to I fix it?





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to