using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace System { public partial class masterPage1 : System.Web.UI.MasterPage { protected override void OnInit(EventArgs e) { if (!config.VariablesInitialized) { config.InitializeVariables(); } base.OnInit(e); } protected void Page_Load(object sender, EventArgs e) { } public void WriteTopMessageBar(string message, bool isGoodMsg) { string css = isGoodMsg ? "divGoodMsgBar" : "divErrorMsgBar"; string htmlMsgBar = $"
{message}
"; phMessageBar.Controls.Add(new LiteralControl(htmlMsgBar)); } public void ShowMessage(string title, string msg, bool isGoodMsg) { string escapedTitle = title.Replace("'", "\\'"); string escapedMsg = msg.Replace("'", "\\'"); string isGood = isGoodMsg ? "true" : "false"; string s = $""; phBottomScript.Controls.Add(new LiteralControl(s)); } } }