How do I add an additional .NET route?
Posted
by maureliusb
on Stack Overflow
See other posts from Stack Overflow
or by maureliusb
Published on 2010-03-31T20:03:20Z
Indexed on
2010/03/31
20:13 UTC
Read the original article
Hit count: 415
Here is my default route.
context.MapRoute(
"CreditReview",
"Site/{sitecode}/CreditReview/{controller}/{action}/{id}",
new { action = "Index", id = "" }
);
I'm looking to add 'status'. This is what I currently have and it isn't working. I haven't worked with routes before so I'm sorry if this is an easy question to answer.
context.MapRoute(
"CC",
"Site/{sitecode}/CreditReview/{controller}/{status}/{action}/{id}",
new { action = "Index", id = "" });
© Stack Overflow or respective owner