summaryrefslogtreecommitdiff
path: root/external/aspnetwebstack/src/System.Web.WebPages.Administration/_pagestart.generated.cs
blob: 01cbe883e49f6ea2197c3cb5ff497a056265acde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.225
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace System.Web.WebPages.Administration
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Web;
    using System.Web.Helpers;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.WebPages;
    using System.Web.WebPages.Html;
    
    [System.Web.WebPages.PageVirtualPathAttribute("~/_pagestart.cshtml")]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorSingleFileGenerator", "1.0.0.0")]
    public class pagestart_cshtml : System.Web.WebPages.StartPage
    {
#line hidden

                    // Resolve package relative syntax
                    // Also, if it comes from a static embedded resource, change the path accordingly
                    public override string Href(string virtualPath, params object[] pathParts) {
                        virtualPath = ApplicationPart.ProcessVirtualPath(GetType().Assembly, VirtualPath, virtualPath);
                        return base.Href(virtualPath, pathParts);
                    }
        public pagestart_cshtml()
        {
        }
        protected System.Web.HttpApplication ApplicationInstance
        {
            get
            {
                return ((System.Web.HttpApplication)(Context.ApplicationInstance));
            }
        }
        public override void Execute()
        {


WriteLiteral("\r\n\r\n");


  
    // 404 if the admin page isn't available
    if (!SiteAdmin.Available) {
        Response.SetStatus(HttpStatusCode.NotFound);
        return;
    }
       
    AdminSecurity.Authorize(this);    


WriteLiteral("\r\n");


  
    // Set up layout values
    var breadCrumbs = new List<Tuple<string, string>>();
    if (SiteAdmin.Modules.Any()) {
        breadCrumbs.Add(Tuple.Create(AdminResources.AdminHome, Href(SiteAdmin.AdminVirtualPath)));
    }
    PageData["BreadCrumbs"] = breadCrumbs;
    Layout = "_Layout.cshtml";  

    
    HtmlHelper.ValidationSummaryClass = "message error";
    HtmlHelper.ValidationInputCssClassName = "validation-error";

    // Force IE9 standards mode rendering
    Response.AddHeader("X-UA-Compatible", "IE=Edge");


WriteLiteral("\r\n\r\n");


        }
    }
}
#pragma warning restore 1591