RouteData.DataTokens["ParentActionViewContext"]中包含了父級視圖的相關信息,如路由等spa
public ActionResult Child() { var parentView = RouteData.DataTokens["ParentActionViewContext"] as ViewContext; //或
var parentView = ControllerContext.ParentActionViewContext; return View(); }