通过设置Session的值来实现此功能:
string url = Request.UrlReferrer.ToString();
Session["url"] = url;
不带提示的跳转:
return Redirect(System.Web.HttpUtility.UrlDecode(Session["url"].ToString()));
带提示的跳转:
return Content(" <script>alert('提示的内容');window.location='"+ System.Web.HttpUtility.UrlDecode(Session["url"].ToString()) + "';</script>");