【发布时间】:2010-10-10 19:23:47
【问题描述】:
我有以下问题: 例如我有这样的路线:
routes.Add(new Route("forums/thread/{threadOid}/last", new MvcRouteHandler())
Defaults = new RouteValueDictionary(
new { controller = "Thread", action ="ShowThreadLastPostPage"}),
Constraints = new RouteValueDictionary(new { threadOid = @"^\d+$" })
}
);
有没有办法使用 RedirectToAction 方法导航到这样的 URL:
forums/thread/{threadOid}/last#postOid
【问题讨论】:
-
对于 ASP.NET MVC Core,请参阅stackoverflow.com/q/55741977/11683。
标签: asp.net asp.net-mvc fragment-identifier