Exemplo n.º 1
0
        protected void SetCurrentMsg()
        {
            curMsgPanel.Controls.Clear();
            motd = new MessageOfTheDay(Server.MapPath(System.Web.Configuration.WebConfigurationManager.AppSettings["messageOfTheDayPath"]));
            curMsgPanel.Controls.Add(motd.GetMotdPanel());

            if (motd.ShowMotd && !IsPostBack)
            {
                showMotdCheckBox.Checked = true;
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //string msg = "Hello, " + Context.User.Identity.Name + " you have been authenticated! You are now allowed to use this application.";
            MessageOfTheDay motd = new MessageOfTheDay(Server.MapPath(System.Web.Configuration.WebConfigurationManager.AppSettings["messageOfTheDayPath"]));
            if (motd.ShowMotd)
            {
                msgOfTheDay.Controls.Clear();
                motd = new MessageOfTheDay(Server.MapPath(System.Web.Configuration.WebConfigurationManager.AppSettings["messageOfTheDayPath"]));
                msgOfTheDay.Controls.Add(motd.GetMotdPanel());
            }

            //this.ShowButtons();
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //string msg = "Hello, " + Context.User.Identity.Name + " you have been authenticated! You are now allowed to use this application.";
            MessageOfTheDay motd = new MessageOfTheDay(Server.MapPath(System.Web.Configuration.WebConfigurationManager.AppSettings["messageOfTheDayPath"]));

            if (motd.ShowMotd)
            {
                msgOfTheDay.Controls.Clear();
                motd = new MessageOfTheDay(Server.MapPath(System.Web.Configuration.WebConfigurationManager.AppSettings["messageOfTheDayPath"]));
                msgOfTheDay.Controls.Add(motd.GetMotdPanel());
            }

            //this.ShowButtons();
        }
Exemplo n.º 4
0
        protected void SetCurrentMsg()
        {
            curMsgPanel.Controls.Clear();
            motd = new MessageOfTheDay(Server.MapPath(System.Web.Configuration.WebConfigurationManager.AppSettings["messageOfTheDayPath"]));
            curMsgPanel.Controls.Add(motd.GetMotdPanel());

            if (motd.ShowMotd && !IsPostBack)
            {
                showMotdCheckBox.Checked = true;
            }
        }