我正在尝试将我当前的 url 传递给我的 actionresult 但 returnUrl 总是出现 null
@Html.ActionLink("Create Student", "Create", "StudentCenter", new{ returnUrl = Request.RawUrl}, new { @class = "button" })
这是控制器
public ActionResult Create(string returnUrl)
{
HttpCookie cookie = new HttpCookie("redirectCookie",returnUrl);
ViewBag.Sex = new SelectList(Enum.GetNames(typeof(SchoolCup.Domain.Sex)));
return View();
}