예제 #1
0
        public string houtaicashu;//用于连接CAI工具用
        protected void Page_Load(object sender, EventArgs e)
        {
            remrkbll = new RemarkBLL();
            if (Session["UserName"] != null)
            {
                CurrentUsername = Session["UserName"].ToString();
                userloginifo    = "<span>欢迎您:" + CurrentUsername + "访问河北工业大学学报编辑部!<a href='loginout.aspx'>【退出】</a></span>";
                string UserID = Session["UserID"].ToString();
                //string  Role = Session["Role"].ToString();
                UserPwd = Session["UserPwd"].ToString();
            }
            else
            {
                userloginifo    = "<span >您好!欢迎访问河北工业大学学报编辑部 <a href='login.aspx?type=indexpage'>【请登录】</a> 新用户?<a href='register.aspx'>【注册】</a></span>";
                Session["Role"] = "";
            }
            Response.AddHeader("P3P", "CP=CAO PSA OUR");
            if (!IsPostBack)
            {
                this.tongji.Text = Application["user_total "].ToString();
                notice();      //通知通告
                bindNews();    //首页新闻
                alliance();    //工作联盟
                workdt();      //工作动态

                workdtImage(); //工作动态首页图片,读取的是NewsImages文件下的图片
                workdtImage1();
                example();     //创新案例,用于在首页显示创新案例图片
                poliy();       //政策法规==创新理论
                connetion();   //综合交流
                bind();
                zirannotice();
                shekenotice();
            }
        }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     remrkbll = new RemarkBLL();
     if (!IsPostBack)
     {
         bind();
     }
 }