MVC 当Action 不存在,跳到指定页
所在版面:.NET&ASP.NET
帖子作者:jamin
内容提要:当请求的Action 不存在时,就会报404错误。 而我们想要自定义这个转向页,有没办法呢? 我们可以在Controller中重写 protected override void HandleUnknownAction(string actionName) { RedirectToAction("Index"); base
文章来源: http://7csky.cn/bbs/a/a.asp?b=502&ID=1674