Esempio n. 1
0
    override protected void OnInit(EventArgs e)
    {
        base.OnInit(e);

        _libPageUtil = new AppPageUtility(this);
        _libTypeUtil = new AppTypeUtility();

        //gDbAgent    = new DBAgent(System.Configuration.ConfigurationManager.ConnectionStrings["MainDB"].ConnectionString);
        //gDbAgentEIS = new DBAgent(System.Configuration.ConfigurationManager.ConnectionStrings["EISDB"].ConnectionString);

        if (Context.User.Identity.IsAuthenticated)
        {
            _userId = User.Identity.Name;
        }
        else
        {
            _userId = "Anonymous";
        }

        Response.AddHeader("P3P", "CP='CAO PSA CONi OTR OUR DEM ONL'");

        //Response.Write("<META http-equiv=\"Page-Enter\" content=\"blendTrans(Duration=0.3)\">");
        //Response.Write("<META http-equiv=\"Page-Exit\" content=\"blendTrans(Duration=0.3)\">");

        //string sScript = "window.attachEvent('onbeforeunload', gfAttachBeforeUnload_DT);\n"
        //               + "document.body.attachEvent('onfocusout', gfAttachFocusOut_DT);\n"
        //               + "window.attachEvent('onload', gfAttachLoad_DT);\n"
        //               + "document.writeln(\"<iframe id='ifrWAIT' frameborder='0' scrolling='no' class='WaitingBar'></iframe>\");\n"
        //               + "document.writeln(\"<div id='flpWAIT' class='WaitingBarDiv'></div>\");\n";

        //_libPageUtil.ExecuteScript(sScript);
    }
Esempio n. 2
0
 private void SetAllTimeTop()
 {
     objNum = new AppPageUtility(this.Page);
 }