username@email.com
2025-01-21 85c82e61104884a052893b2a642e732d1182707f
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using CY.Infrastructure.Configuration;
using System.Web.UI.HtmlControls;
using CY.Infrastructure.Logging;
using LIMS.MessageBox;
using System.Text;
using CY.Model;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;
using System.Web.UI.WebControls;
using CY.BLL;
using CY.Infrastructure.Common;
using CY.Model.Inquiry;
 
namespace CY.WebForm
{
    /// <summary>
    /// 后台系统基础页面类
    /// </summary>
    public class BasePage : MainPage
    {
        public BasePage()
        {
            Load += new EventHandler(BasePage_Load);
        }
 
        public void BasePage_Load(object sender, EventArgs e)
        {
            if (CurrentUser == null)
            {
                string js = "";
                js = "window.parent.parent.parent.parent.location.href='/login.html'";
                Response.Write("<script>" + js + "</script>");
                Response.End();
            }
        }
    }
 
}