home0.aspx

来自「《圣殿祭司的ASP.NET 2.0开发详解——使用C#》光盘内容.包含了书籍所含」· ASPX 代码 · 共 34 行

ASPX
34
字号
<%@ Page masterPageFile="~/WebAdminNoButtonRow.master" debug="true" inherits="System.Web.Administration.WebAdminPage"%>
<%@ MasterType virtualPath="~/WebAdminNoButtonRow.master" %>

<script runat="server" language="cs">
protected override void OnInit(EventArgs e) {
    if (string.Compare(CurrentRequestUrl, Request.CurrentExecutionFilePath) != 0) {
          PushRequestUrl(Request.CurrentExecutionFilePath);
    }
}

public void Page_Load() {
    string queryStringAppPath = GetQueryStringAppPath();
    string queryStringPhysPath = GetQueryStringPhysicalAppPath();
    string requestAppPath = HttpContext.Current.Request.ApplicationPath;

    if (queryStringPhysPath != null) {
        string webAdminVersion = "aspnet_webadmin\\" + base.UnderscoreProductVersion + "\\";
        if (queryStringPhysPath.EndsWith(webAdminVersion)) {
             WebAdminToolError.Visible = true;
        }
    }
}

</script>

<asp:content runat="server" contentplaceholderid="titleBar">
<asp:literal runat="server" text="<%$ Resources:ProblemWithApp %>"/>
</asp:content>

<asp:content runat="server" contentplaceholderid="content">
<asp:literal runat="server" text="<%$ Resources:ProblemWithAppMessage %>"/>
<asp:literal runat="server" text="<%$ Resources:NoWebAdminAdministration %>" id="WebAdminToolError" Visible="false" />
</asp:content>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?