【发布时间】:2013-06-13 14:11:48
【问题描述】:
我有以下代码:
var routeDictionary = new RouteValueDictionary {{"action", "Login"}, {"controller", "Persons"}};
filterContext.Result = new RedirectToRouteResult(routeDictionary);
这将产生“/Persons/Login”
如何将附加查询字符串传递给之前的代码?使其产生“/Persons/Login/?someQuerystring=someValue”
【问题讨论】:
标签: asp.net-mvc-4 asp.net-mvc-routing redirecttoroute