protected void Page_Load(object sender, EventArgs e) { var page = Regex.Match(Request.Path, @"^/(?<page>[^.]*)\.aspx$", RegexOptions.IgnoreCase).Groups["page"].Value; Body.AddCssClasses(page.ToLowerInvariant() + "-page"); SetupMainBanner(); }
public void ShowDisclaimer() { Body.RemoveCssClass("disclaimer-hidden"); Body.AddCssClasses("disclaimer-shown"); Disclaimer.Visible = true; }