private void Page_Load(object sender, System.EventArgs e)
        {          // 页面加载事件处理
            this.WebSiteTitle = CommonStatic.WebSiteTitle();

            string strJavaScript = "<script language='javascript'>" +
                                   "window.resizeTo(640,480);" +
                                   "window.moveTo(screen.availWidth/2-320,screen.availHeight/2-240);" +

                                   "function FullScreen()" +
                                   "{" +
                                   "window.moveTo(0,0);" +
                                   "window.resizeTo(screen.availWidth,screen.availHeight);" +
                                   "var thewindow = window.open('SysManage/Login.aspx', '_top');" +
                                   "thewindow.focus(); " +
                                   "}" +

                                   "setTimeout('FullScreen()',5000);" +
                                   "</script>";                          //  客户端代码声明,该代码完成开起全屏登录窗口

            Page.RegisterClientScriptBlock("FullScreen", strJavaScript); // 注入代码
        }
Beispiel #2
0
 protected void Application_Start(Object sender, EventArgs e)
 {
     CommonStatic.LoadOperDictionary();
     CommonStatic.LoadDeptDictionary();
 }