【发布时间】:2013-09-13 19:26:09
【问题描述】:
我想在我的返回操作中添加一个 viewbag 消息,类似这样......
return RedirectToAction("Index", new { Message = "Accepted Successfully" });
以上工作正常,但是我试图在选项卡式索引视图上做同样的事情,我发现在发布操作后导航回所需选项卡的唯一方法如下......
return RedirectPermanent("~/ReferralTarget/Index/#users");
基本上索引是视图,用户是索引页面上的选项卡式视图... 有没有办法让 RedirectPermanaent 接受第二个参数? 谢谢..
【问题讨论】:
标签: c# html asp.net-mvc-4