Esempio n. 1
0
        protected void LinkButtonAddGroup_Click(object sender, EventArgs e)
        {
            if (TextBoxGroupName.Text != "")
            {
                string response = operation.AddTestGroup(TextBoxGroupName.Text, "0");

                if (response == "SUCCESS")
                {
                    messagediv.Visible             = true;
                    messagediv.Attributes["class"] = "fixed-message rounded alert bg-success alert-dismissible animated fadeIn text-center text-white";
                    mesaagetxt.InnerHtml           = "Success.";
                    TestGroup();
                }
                else if (response == "ERROR")
                {
                    messagediv.Visible             = true;
                    messagediv.Attributes["class"] = "fixed-message rounded alert bg-danger alert-dismissible animated fadeIn text-center text-white";
                    mesaagetxt.InnerHtml           = "Error! something went wrong please try again later.";
                }
            }
        }