相关疑难解决方法(0)

带锚的ASP.Net MVC RedirectToAction

我有以下问题:例如我有这样的路线:

routes.Add(new Route("forums/thread/{threadOid}/last", new MvcRouteHandler())
           Defaults = new RouteValueDictionary(
             new { controller = "Thread", action ="ShowThreadLastPostPage"}),
        Constraints = new RouteValueDictionary(new { threadOid = @"^\d+$" })
    }
);
Run Code Online (Sandbox Code Playgroud)

有没有办法使用RedirectToAction方法导航到这样的URL:

forums/thread/{threadOid}/last#postOid

asp.net asp.net-mvc fragment-identifier

80
推荐指数
2
解决办法
2万
查看次数

标签 统计

asp.net ×1

asp.net-mvc ×1

fragment-identifier ×1