asp.net mvc 3 - Why dont i get error for following route map -


folks have question

why dont error following route map

routes.maproute("default", "{controller}/{action}/{id}", new { controller = "home", action = "index", id = "-1" }); if url similar http://localhost/

but following ,mapping gives "resource not found 404" error same url !

routes.maproute("default", "{xxxxxxxxx}/{yyyyy}/{id}", new { controller = "home", action = "index", id = "-1" });

whats difference between route maps ?


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -