My routes are www.xxxxxxx.com/taxes/us/all-states/all-taxes/2010/q1 and www.xxxxxxx.com/taxes/us/alsalka/all-taxes/
routes.MapRoute(
"TaxReport", // Route name
"taxes/us/{state}/{taxType}/{year}/{quarter}", // URL with parameters
new
{
controller = "TaxViewer",
action = "TaxReport",
taxType = "all-taxes",
year = "",
quarter = "Q1"
} // Parameter defaults
);
When i call <%= Html.RouteLink(state.State, "TaxReport", new { state = state.StateUrlCode, taxType = Model.TaxTypes.SelectedValue })%>
it create alaska
i don't know why. Route was working fine when i had "{state}/{taxType}/{year}/{quarter}"
but now it is not working.