0
나는 @ url.Action을 매개 변수로 전달합니다.특정 매개 변수를 사용하여 경로 무시
매개 변수가 null 인 경우 아무 것도하지 않고 동일한 페이지에 머물러 있습니다. 내가 무슨 짓을
은 다음
routes.MapRoute(
null,
"Test/View/{Id}",
new { controller = "Test", action = "View" },
new { Id = @"\d+" } //id must be numerical
);
routes.IgnoreRoute("Test/View/{*pathInfo}");
동작이 실행하지만 내 문제는 내가이를 얻을 수 있다는 것이다되지 않은 : 나는 obvisouly보고 싶지 않아
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Test/View
.
도움 주셔서 감사합니다.