@{ switch (ViewData["Layout"]) { case "SectionScript": Layout = "_PartialScript"; break; default: Layout = "_Layout"; break; } }