0
내 컨트롤러에서 .aspx 페이지로 라우팅하고 싶습니다. 나는 이것을 시도하고 있지만 그것이 작동하지 않습니다.컨트롤러에서 asp.net mvc 3 라우팅 aspx 페이지
return Redirect("~/Views/Report/UygulamaYanitiRapor.aspx");
코드 경로 이하이지만 Request.QueryString [ "gelen"]을 사용하여 매개 변수를 가져올 수 없습니다. 그것은 null이됩니다.
return Redirect("~/Report/UygulamaYanitiRapor/0");
routes.MapPageRoute(
"Rapor",
"Report/UygulamaYanitiRapor/{gelen}",//{gelen}/{id}",
"~/Views/Report/UygulamaYanitiRapor.aspx",
true, null,
new RouteValueDictionary { { "outgoing", new MyCustomConstaint() } }
);