Exemplo n.º 1
0
        protected void btnSubmite_Click(object sender, EventArgs e)
        {
            RequiredFieldValidator10.Enabled    = false;
            RegularExpressionValidator4.Enabled = false;
            if (chkAllMember.Checked)
            {
                MembersModel[] model;
                model = client.GetAllMemberCellphon(ParlourId);
                if (model != null)
                {
                    foreach (MembersModel modelnew in model)
                    {
                        SendMassge(modelnew.Cellphone);
                    }
                }

                ShowMessage(ref lblMessage, MessageType.Success, " Send SMS Success To All");
            }
            else
            {
                SendMassge(txtCellphoneNumber.Text);
                ShowMessage(ref lblMessage, MessageType.Success, txtCellphoneNumber.Text + " Send SMS Success");
            }
            ClearControl();
            lblMessage.Visible = true;
        }