获取上个页面的url包括参数 Uri uri = Request.UrlReferrer; string path = uri.AbsoluteUri; TempData["path"] = path;