我有这个在我的Global.asax.cs:RedirectToRoute应该如何使用?
routes.MapRoute("BetaAccess", "beta-access", new { controller = "Beta", action = "Index" });
这在我的控制器(在HomeController的索引操作)和它肯定是击中:
RedirectToRoute("BetaAccess");
,但仍没有发生重定向...它只是进入正常的主页。我用错了吗?
另外,我可以做的Response.Redirect( “〜/β-访问”),并进入公测网页...
哦,我是'tard。谢谢。 – 2009-08-17 20:58:01
我必须投票评论,让我发笑。 (不用担心,这是一个容易犯的错误。:) – 2009-08-18 00:56:21