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; } }
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(); }