コード例 #1
0
        protected void btnSubmt_Click(object sender, EventArgs e)
        {
            bool      isvalidate = false;
            int       empid      = Convert.ToInt32(txtEmployeeID.Text);
            string    answer     = txtAnsr.Text;
            IAdminBLL obj        = TCS.ISMS.BLLFactory.AdminBLLFactory.CreateAdminBLLObject();

            isvalidate = obj.ValidateSecurity(empid, answer);
            if (isvalidate)
            {
                lblNewPaswrd.Visible       = true;
                txtNewPassword.Visible     = true;
                txtNewPassword.Visible     = true;
                txtConfirmPassword.Visible = true;
                btnSave.Visible            = true;
                //btnCamcel.Visible = true;
                lblConfirmPasswrd.Visible = true;
                txtAnsr.ReadOnly          = true;
                btnCancel.Visible         = false;
                btnCancel2.Visible        = true;
            }
            else
            {
                lblMessage.Text = "Enter Correct Answer";
            }
        }