⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geterror.aspx.cs

📁 最好用的站点内容管理系统 全部源代码都有
💻 CS
字号:
//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class manage_publish_error_GetError : NetCMS.Web.UI.ManagePage
{
    public string filename = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)                                               //判断页面是否重载
        {
                                                 //判断用户是否登录
            filename = "../../../logs/public/" + NetCMS.Config.UIConfig.Logfilename + "_" + DateTime.Now.Month + DateTime.Now.Day + ".log";
            string filepath = Server.MapPath(filename);
            ShowFileContet(filepath);
        }
    }

    protected void ShowFileContet(string filepath)
    {
        NetCMS.Content.Templet.Templet tpClass = new NetCMS.Content.Templet.Templet();
        try
        {
            FileContent.Text = tpClass.showFileContet(filepath);
        }
        catch
        {
            PageError("恭喜您,今天(" + DateTime.Now.ToShortDateString() + ")发布未产生错误日志!", "");
        }
    }
}

⌨️ 快捷键说明

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