I have a problem in routing on the server (IIS6). It works OK on the development environment:
routes.MapRoute(
"FindCities",
"FindCities/{state_id}",
new { controller = "Regions", action = "FindCitiesByStateID", state_id = "" });
Here I call this action:
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
url: "FindCities/" + state_id,
data: "{}",
dataType: "json"
...
All routes i have:
routes.MapRoute(
"Default",
"{controller}.aspx/{action}/{id}",
new { action = "Index", id = "" }
);
routes.MapRoute(
"Root",
"",
new { controller = "Home", action = "Index", id = "" }
);
I've tried url: "FindCities.aspx/" + state_id and "FindCities.aspx/{state_id}" and other variants, but it doesn't find the right way. What is the right way to write routes for IIS6? TIA